Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

My mobile running Android which is using bluetooth connected to my Ubuntu 12.10 64-bit.

enter image description here

My goal is to have following step:

  • In my Ubuntu desktop I am running music from YouTube
  • Mobile phone is connected to Ubuntu Desktop using bluetooth
  • From my mobile I have a head phone connected to my ear
  • I want to hear the music from my mobile the same audio which is playing in desktop

How can I do that? in this popup dialog I don't have any kind of option to send audio output on bluetooth.

Follow up:

enter image description here

share|improve this question
4  
Soundwire which doesn't work with Bluetooth but with WiFi does exactly what you want, but as I said it's WiFi not Bluetooth. –  Uri Herrera Feb 25 '13 at 0:19
1  
Thank you, using wifi it works. But packet gets broken and audio is not stable, also i have two kind of sound output, only one kind of sound output works. But the thing works nicely. –  YumYumYum Feb 25 '13 at 0:53
    
I think you are connected(audio streaming) using Internet (not Wifi) –  totti Apr 22 '13 at 14:55
1  
You could look into this tutorial and change the sound input into sound output blog.stevenocchipinti.com/2012/10/… –  Arno van der Weijden Nov 28 '13 at 23:45

4 Answers 4

If you use Blueman instead of gnome bluetooth manager you can set uo your phone as sound output.

You can find Blueman in Software Center

share|improve this answer

You stated that using Wifi is okay, so here's an easy solution to your problem. Set up Icecast on you machine and set the audio source to something like stereo-mix (see the chapter on Darkice).

On your mobile device just install any player capable of playing streams (e.g. VLC for Android or Tunein Radio, both free and both available for Android and iOS) and point them to your stream.

If you desperately want to use Bluetooth there should be a way. You cannot simply use the Android device as a Bluetooth speaker. But you could create a virtual pulseaudio recording device that just records everything played (i.e. monitor soundcard) and use this as a bluetooth microphone. Now you need an app on your mobile device that plays out loud what is recorded on the microphone (like this). For the pluseaudio part you could ask for details on the IRC channel #pulseaudio on freenode.net.

share|improve this answer
    
More detailed answer to come. I'm just testing this with my iphone. It's easier than I though, you just need to pair your device and loud a pulseaudio loopback module with your device as a sink. With pavucontrol you can then set the sink to monitor your soundcard. –  mniess Nov 29 '13 at 16:14
    
Bluetooth doesn't work anymore for me since upgrading Ubuntu, so I can't test this, but here's how it should work. Run pactl list short sinks after pairing to get the sink NUMBER of your device. Then run pactl load-module module-loopback sink=NUMBER to add a loopback to that sink. In pavucontrol in the recording tab you can now set that loopback to monitor soundcard. –  mniess Nov 29 '13 at 16:56

You could also save the Android output and connect your bluetooth headset to your ubuntu machine, just set it up as any other device but in "Device Type" just select headphone (or something like that)

share|improve this answer

I also tried to do this in the past, searched for answers and the basic answer for this question is that you can't do it, because the android bluetooth stack lacks support for A2DP sink capabilities.

Then I found a great answer at stackoverflow which says that it might be possible to do it, but it's hard to do. The answer and the details are here. For the solution presented in that answer you will need:

  • a rooted device.
  • Good programming skills/experience. (Or someone who does it for you)
  • Android version older than 4.2, because in 4.2 Android switched from the BlueZ stack to Broadcom's Bluedroid.

But I don't know whether the solution presented in that answer really works, because I never tried it. Maybe in the future Google will change the default bluetooth stack to support the A2DP sink profile or some modders make a custom ROM with support for it, but until that day this is the only way.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.