- How to stream my GNU/Linux audio output to Android devices over WI-FI?
- Solution 2
- Solution 3
- WiFi Audio Wireless Speaker
- SoundWire
- Solution 4
- Stream Audio from Ubuntu Desktop to Android Mobile via bluetooth [closed]
- 1 Answer 1
- Stream audio to mobile device
- 4 Answers 4
- You must log in to answer this question.
- Linked
- Related
- Hot Network Questions
- Subscribe to RSS
- Stream Sound from Ubuntu to Android
- 6 Answers 6
- You must log in to answer this question.
- Linked
- Related
- Hot Network Questions
- Subscribe to RSS
How to stream my GNU/Linux audio output to Android devices over WI-FI?
There is a very simple solution because PulseAudio already has all the necessary tools.
- Get your source device name with command pactl list | grep Name
- Create the following script named pashare :
#!/bin/sh case "$1" in start) $0 stop pactl load-module module-simple-protocol-tcp rate=48000 format=s16le channels=2 source= record=true port=8000 ;; stop) pactl unload-module `pactl list | grep tcp -B1 | grep M | sed 's/[^0-9]//g'` ;; *) echo "Usage: $0 start|stop" >&2 ;; esac
chmod 755 pashare ./pashare start netstat -nlt | grep 8000 telnet 127.0.0.1 8000
P.S. You can also check this Wiki page for general information on Pulseaudio network streaming, and this Wiki page about RTP streaming. Don’t expect too much from streaming raw audio over WiFi; it takes enormous gobs of bandwidth. Even with a high-end wireless router/AP with a powerful signal I haven’t been able to get more than stuttering audio out of it. Your best bet is probably to setup a proper media server (like Rygel, which works well with Pulseaudio) to transcode the raw audio to something like MP3 and stream that instead.
Solution 2
You can use VLC to serve a MP3 stream of pulseaudio’s output via HTTP.
The main advantage is that you don’t need to install any special software on your remote device, a web browser (or music player) is all you need to play the stream. The downside is that it’s audio only, a few seconds lag make it useless for videos
- Find pulseaudio’s output name with:
pactl list | grep "Monitor Source"
cvlc -vvv pulse://XXXX --sout '#transcode:standard'
http://your.local.ip.address:8888/pc.mp3
Note: The stream isn’t affected by the volume set on the server, unless you totally mute it. If needed, you can keep the level just a tiny bit above 0 to only hear the remote device.
The first two steps combined into one by polynomial_donut:
cvlc -vvv pulse://$(pactl list | grep "Monitor Source" | awk '') --sout '#transcode:standard'
Solution 3
To stream audio output over wifi to your android phone you need to install server software, that sends audio, on PC and client software on Android device. Available options are
WiFi Audio Wireless Speaker
Run WiFi Audio Android App and Press start, you will see IP address of mobile device in the bottom after that run Windows/Linux application and put mobile device’s IP address in the IP address field and then press start on PC application. Now all audio coming out from PC will be send to mobile device and you will hear audio on mobile device.
Download
SoundWire
Wirelessly transmit any music or audio from your PC to your Android phone, tablet, or other PCs
Home page Also see
Solution 4
I’ve published a native PulseAudio server for Android (also includes X11 server):
To use it, set environment variable PULSE_SERVER for your Linux application that you want to redirect the audio from:
export PULSE_SERVER=tcp:10.0.0.100:4713 vlc
where 10.0.0.100 is the IP address of your Android device.
The downside is that you will need to launch each application from the terminal, the upside is that it should be less laggy than module-simple-protocol-tcp. You can put PULSE_SERVER to /etc/profile to set it as a system-wide env variable, then you won’t need to use terminal, but you’ll need to edit it and reboot your PC each time your Android device gets different IP address.
Stream Audio from Ubuntu Desktop to Android Mobile via bluetooth [closed]
This question was closed because it is not about an official Ubuntu flavor. It is not currently accepting answers.
This is not about an official Ubuntu flavor. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow.
Is there any way to play music on your PC and stream it to your android phone via bluetooth, e.g I want to play a youtube video on computer and listen that audio via my phone.
This is really a question about Android. Theoretically this is possible, but you need an app on the Android device itself, which exposes the device as a bluetooth speaker with A2DP profile, so audio can be streamed to it.
1 Answer 1
Yeah!
I explain the way I used (which worked) but I don’t know if it’s the only method one. You need to use bluetooth and pulseaudio:
- pair PC and phone
- set the phone as external speaker via pavucontrol application on the PC
After you paired the two devices, the phone appears in the device tab but this is not important. you need to go in the playback tab and choose your phone from the drop-down menu of the (currently playing media) application you want the sound to re-direct to. PS: I don’t have it at the moment on my hand so I can’t be precise nor sure about steps
Stream audio to mobile device
I’d like to stream the audio from Ubuntu 10.10 to my HTC Desire HD (Android 2.2). I’ve seen solutions so far for streaming from audio players, but I’d like to stream any audio output from the PC to my phone. My use case is for watching TV/Films in VLC or online (BBC iPlayer) in bed, without having to use my surround sound system which is likely to wake up my house mates. I’m not just talking about music from Banshee, but any audio that the system makes. I was thinking that PulseAudio is pretty powerful, is it possible to route audio through that to a mobile device? Can it be done through bluetooth? Cheers in advance!
Good idea, but consider that streaming audio through a wireless connection (e.g. Bluetooth, Wireless LAN) has a delay a bit too long to enjoy watching TV or video. You could try with pulseaudio remote RTP multicast.
Yes, you need to search for pulseaudio+bluetooth howtos. I have played some time with pulseaudio sources and sinks — and learned that they can build pretty amazing functional layout. Too bad, I have no bluetooth — so cannot write or even check such a howto.
PA works directly over TCP/IP too. You just need a client on your phone (no idea if one exists for Android).
4 Answers 4
While these may not be the options you land on, I’d like to offer you two solutions: One from the 90s (maybe late 80s) and the other from the 1870s (yeah, late nineteenth century technology):
- You could buy some wireless headphones. You can get fairly good enclosed sets for under £50. If quality isn’t too much of an issue, halve that number.
- Now we cast back a wee bit further, we hit the granddad of all remote listening: the audio extension cable. These are as cheap as anything and if you have a soldering iron you can buy a stereo spool for almost nothing, add on some pennies for the connectors and wire-up an extended port to your bed.
Both these solutions have next-to-no lag. Obviously the second has less lag but it’s a much more hackish solution. I’d just buy some remote headphones and be done with it.
Time (that you might spend looking for the perfect solution) isn’t worthless, after all.
I have considered this and will probably just end up buying wireless headphones, but I was just thinking it would be cool to be able to do it anyway if a ready solution was there without spending any cash!
SoundWire app
Download SoundWire Server at http://georgielabs.net/. Depending on your PC operating system choose the Windows 7, Windows XP, Linux 64-bit, or Linux 32-bit version as appropriate.
Audio can be streamed using Wifi, internet
If your phone can be configured as a sink instead of a source(kinda the problem), and your ubuntu machine as a source(obviously possible) look at «Can I use my computer as an A2DP receiver / bluetooth speaker?» I was able to do it (but its the other way round) on ubuntu 11.10 and stream my music from the phone to the PC, just to be able to select music while in bed and shut it off wen i want to sleep. the only thing i cant do is adjust volume. You can stream audio to your phone if it can be a sink, use sound settings under volume control to select your device as output(assuming you followed that link and got to enable it) and your PC sound card as input before running the command
without the source and sink parameters
I once configured an icecast server to broadcast my system sound. All I needed was my IP for my desktop and anything which could pick up my wifi, was an instant sound device.
You must log in to answer this question.
Linked
Related
Hot Network Questions
Subscribe to RSS
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
Site design / logo © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2023.7.14.43533
Ubuntu and the circle of friends logo are trade marks of Canonical Limited and are used under licence.
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
Stream Sound from Ubuntu to Android
I got tired of replugging my headset between a desktop and Android when someone calls me. Is there a way to stream sound from Ubuntu (I use Pulseaudio) to Android phone over wifi or usb?
i found this but not sure how to make it work together damonkohler.com/2009/01/rhythmbox-shout2send-plugin.html
and there is a way to use vlc traveldevel.com but it gives an error «too many errors» when i try to stream over http. there is also this one which i will try later reddit.com/r/Android/related/d0hr0/…
There’s a very similar question on superuser, with multiple answers: superuser.com/questions/605445/…
6 Answers 6
Ubuntu has built Ubuntu One Mobile for that very purpose. The service is free to try for one month, then $3.99/month (or $39.99 yearly). It’s worth mentioning that the paid account gives you 25GB of storage and unlimited streaming for devices running Android 2.1+, iOS 3.1+ as well as Windows XP, Vista and 7 (and there are rates for additional storage).
(For those who do not wish to stream music, Ubuntu One provides 5GB of cloud storage for free.)
Yes! There is an app called Remote Audio which tunnels your computer’s audio output over either SSH or 1 or 2 other protocols. I just installed it and haven’t set it up yet, but I plan on using it alongside a remote VNC connection to my desktop at home so I can use Energy XT remotely to sequence song ideas from wherever in the world I happen to be. =)
I’m sure the Ubuntu thing works awesome for music, and probably involves a simpler set-up, but this will stream ANY sound your computer makes, and it’s free (and works with any *nix system). The Rhythembox thing you posted about would work awesome too, but you need to set up an Icecast media streaming server first.
I use the old Winamp Shoutcast streaming server tools. Then use one of the apps that play Shoutcast stations. Winamp (official app, but Shoutcast streaming still in development as of 11/8/2010) or XiiaLive (AppBrain link).
Have you thought of an UPnP AV approach? The protocol allows streaming of media between various devices in the same network (e.g. Wifi). There is a large variety of servers and clients for all the OSes.
For example, MediaTomb is a well-known media server also available for Ubuntu. For playback on the phone you could use allShare, which comes preinstalled on some phones, or a free client like BubbleUPNP or Skifta.
You can install airbubble on your android, which works as a speaker using apple’s AirPlay (DAAP) protocol.
https://play.google.com/store/apps/details?id=com.bubblesoft.android.airbubble
Pulseaudio can be configured to stream to any AirPlay receiver — check this answer for details on setting that up: https://superuser.com/questions/331126/how-can-you-stream-music-from-ubuntu-to-airplay-speakers-on-your-network-with-ub
With airbubble running, it should show up as a speaker option in the ubuntu sound menu.
Check out subsonic. www.subsonic.org It has its own app in the market and should play nice with phone calls. Takes about 2 seconds to setup on an internal only network and 3 min to access it from anywhere.
You must log in to answer this question.
Linked
Related
Hot Network Questions
Subscribe to RSS
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
Site design / logo © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2023.7.14.43533
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.