Page 7 of 8 FirstFirst ... 5678 LastLast
Results 61 to 70 of 76

Thread: Stream audio from iPod touch/iPhone over bluetooth to computer

  1. #61
    Join Date
    Sep 2009
    Beans
    3

    Question Re: Stream audio from iPod touch/iPhone over bluetooth to computer

    My Motorola Atrix sounds find but the Ipod Touch 2G sounds like crap. This is all under Natty 11.04.

  2. #62
    Join Date
    Jul 2007
    Beans
    12

    Re: Stream audio from iPod touch/iPhone over bluetooth to computer

    I have been trying to get this working with Kubuntu 11.04 and Nokia N9. I called the Connect method of org.bluez.AudioSource under the object path of the N9 on the Kubuntu laptop, but I just get the following error:

    'org.bluez.Error.Failed: Stream setup failed'

    Anyone had this issue? Any ideas how to make this work?

  3. #63
    Join Date
    Jul 2007
    Beans
    12

    Re: Stream audio from iPod touch/iPhone over bluetooth to computer

    Another thing I was wondering was if it would be possible for bluez to provide a org.bluez.AudioSink.Connect() method on the laptop? That way I could connect to the laptop in similar manner as to any bluetooth headset.

  4. #64
    Join Date
    Aug 2011
    Beans
    4

    Re: Stream audio from iPod touch/iPhone over bluetooth to computer

    Quote Originally Posted by elysion View Post
    I have been trying to get this working with Kubuntu 11.04 and Nokia N9. I called the Connect method of org.bluez.AudioSource under the object path of the N9 on the Kubuntu laptop, but I just get the following error:

    'org.bluez.Error.Failed: Stream setup failed'

    Anyone had this issue? Any ideas how to make this work?

    I met the same issue with Android phone and ubuntu 10.4. After numerous tries, I found the following steps would help:

    1. unpair the phone with ubuntu and pair again and have a try.

    2. if the previous step does not work, make sure when you pair phone with ubuntu, you don't make them connect. you only pair it.

  5. #65
    Join Date
    Aug 2011
    Beans
    4

    Re: Stream audio from iPod touch/iPhone over bluetooth to computer

    i met the same issue ocassionally. seems the deamon crashed.

    ps -aef | grep pulse

    would yield pulseaudio deamon not there.

    reboot the system would work.

    Quote Originally Posted by livinginx View Post
    I've tried the steps posted by Ric123 but am having issues.

    After I restart and pair my computer to my Nokia phone, my pulseaudio stops working.

    If I type 'pacmd' into a terminal, I get 'No PulseAudio daemon running, or not running as session daemon.' or 'Failed to kill PulseAudio daemon'

    I am running 10.04 but no luck in getting this to work. Any help?

  6. #66
    Join Date
    Aug 2011
    Beans
    4

    Re: Stream audio from iPod touch/iPhone over bluetooth to computer

    I had similar experience with destop ubuntu 10.4. After successfully followed the steps, namely finishing 'pactl load-module module-loopback source=bluez_source.xx.xx.xx.xx.xx sink=..." which seems to suceed, I can't hear any music.

    What is more, if I play youtube from safari, I can't hear anything. The interesting thing to note is that the sound control icon on the upper right bar changed shape to dot dot shape.

    Any one has similar experience would like to share your solution?

    Quote Originally Posted by krshna_r View Post
    Hi,
    I am trying stream music files from my samsung galaxy to i.Mx51 evalkit which boots Ubuntu.

    I successfully followed the steps given by Ric123

    i am able to find source as bluez_source.myphonebluetoothaddr and sink as alsa_output.platform-soc-audio.2.analog-stereo

    but after giving the cmd 'pactl load-module module-loopback source=MYSOURCE sink=MYSINK and playing the song in my phone i am not able to hear any sound from the speakers connected to eval kit.

    whr i am going wrong.
    plz reply

  7. #67
    Join Date
    Aug 2011
    Beans
    4

    Re: Stream audio from iPod touch/iPhone over bluetooth to computer

    Tried a little bit more.

    Open system->preference->sound, click input, I do see the A2DP card as input.
    However, as soon as I start to steam audio from the phone, I get a popup window saying "Waiting for sound system to respond" forever.

    Quote Originally Posted by kais View Post
    I had similar experience with destop ubuntu 10.4. After successfully followed the steps, namely finishing 'pactl load-module module-loopback source=bluez_source.xx.xx.xx.xx.xx sink=..." which seems to suceed, I can't hear any music.

    What is more, if I play youtube from safari, I can't hear anything. The interesting thing to note is that the sound control icon on the upper right bar changed shape to dot dot shape.

    Any one has similar experience would like to share your solution?

  8. #68
    Join Date
    Sep 2010
    Beans
    2

    Re: Stream audio from iPod touch/iPhone over bluetooth to computer

    It actually seems that a lot of issues were fixed lately since running Ubuntu 11.10 (beta) I can finally get lots of different configurations to work (from different phones to different bluetooth dongles on 3 differents machines) flawlessly. None of these configurations was working (stuttering sound) with 11.04. I would be interested to know which component fixed that if anyone knows: bluez, pulseaudio, the kernel, alsa?

    Anyway, that’s a really good news.

  9. #69
    Join Date
    Dec 2011
    Beans
    4

    Re: Stream audio from iPod touch/iPhone over bluetooth to computer

    This script worked for me in Ubuntu 11.10, streaming music from a gingerbread droid to a rocketfish bt adapter. Very cool!

    The only thing I have to do in addition to run the script is open the Sound Settings, select Output, and then select my "Internal Audio Digital Stereo (HDMI)" device, and then click back onto the "Internal Audio Analog Stereo" device. Maybe the script is picking the wrong output device by default?

    Second, I want to put this server in my basement out of the way and stream music to it from anywhere in the house. Obviously if I have to walk all the way to the basement and run this script it isn't going to be very convenient. Any ideas on how to automate or make it permanent?

    Thanks for the help everybody who is looking for a solution. I hope this includes the ubuntu team and upstream folks...

    EDIT : NVM, figured the first problem out. Changed the alsaSink line to be more specific about which output driver to use.
    alsaSink="$(pactl list | grep -m 1 "Name: alsa_output.*analog-stereo" | cut -c "

    Quote Originally Posted by zansatsu0 View Post
    I figured since this thread got revived, I would share this script I wrote. The script is attached. It wouldn't let me attach the config file, but I'm sure you can do:
    Code:
    sudo gedit /etc/bluetooth/audio.conf
    I have not tested this on any other system and I cannot guarantee that it will even work for you, but I figured someone may find it useful. At the worst, it will just error out on you. At the best, it will work. Enjoy.

    My sources were two users on these forums and they gave me just enough to get this script done. Thanks goes out to the OP of this thread Ric123, especially this post:
    http://ubuntuforums.org/showpost.php...3&postcount=10

    And megamanextent at this thread:
    http://ubuntuforums.org/showpost.php...2&postcount=25

    ..code clipped...
    Last edited by jayk_s4; December 1st, 2011 at 02:20 AM.

  10. #70
    Join Date
    May 2009
    Beans
    8

    Re: Stream audio from iPod touch/iPhone over bluetooth to computer

    Stupid question... but how do I run this script? Just download it and click on it?


    Quote Originally Posted by zansatsu0 View Post
    I figured since this thread got revived, I would share this script I wrote. The script is attached. It wouldn't let me attach the config file, but I'm sure you can do:
    Code:
    sudo gedit /etc/bluetooth/audio.conf
    I have not tested this on any other system and I cannot guarantee that it will even work for you, but I figured someone may find it useful. At the worst, it will just error out on you. At the best, it will work. Enjoy.

    My sources were two users on these forums and they gave me just enough to get this script done. Thanks goes out to the OP of this thread Ric123, especially this post:
    http://ubuntuforums.org/showpost.php...3&postcount=10

    And megamanextent at this thread:
    http://ubuntuforums.org/showpost.php...2&postcount=25
    Stupid question... but how do I run this script? Just download it and click on it? please help...





    I had to edit my /etc/bluetooth/audio.conf to look like this:
    Code:
    # Configuration file for the audio service
    
    # This section contains options which are not specific to any
    # particular interface
    [General]
    
    # Switch to master role for incoming connections (defaults to true)
    Master=true
    
    # If we want to disable support for specific services
    # Defaults to supporting all implemented services
    #Disable=Control,Source
    Enable=Source
    
    # SCO routing. Either PCM or HCI (in which case audio is routed to/from ALSA)
    # Defaults to HCI
    #SCORouting=PCM
    
    # Automatically connect both A2DP and HFP/HSP profiles for incoming
    # connections. Some headsets that support both profiles will only connect the
    # other one automatically so the default setting of true is usually a good
    # idea.
    AutoConnect=true
    
    # Headset interface specific options (i.e. options which affect how the audio
    # service interacts with remote headset devices)
    [Headset]
    
    # Set to true to support HFP, false means only HSP is supported
    # Defaults to true
    HFP=true
    
    # Maximum number of connected HSP/HFP devices per adapter. Defaults to 1
    MaxConnected=1
    
    # Just an example of potential config options for the other interfaces
    #[A2DP]
    #SBCSources=1
    #MPEG12Sources=0
    connectBTAudio.sh
    Code:
    #!/bin/bash
    # Credit to Ric123 and megamanextent for the primer material
    # found at UbuntuForums.Org
    #---------------------------------------------------------------
    # Written by Alex Zaballa on 02/24/2011
    # Distributed under GPL v.2.
    # Use at your own risk. There is no guarantee this will work
    # but shouldn't hurt anything.
    #---------------------------------------------------------------
    # This script is designed to work in Ubuntu Maverick 10.10
    # so I can pair my Android to Ubuntu. I have not tested this
    # with IPhone in any flavor. Your mileage may vary.
    # It requires qdbus and Pulse Audio.
    # This also assumes that your audio.conf file in
    # /etc/bluetooth is configured properly.
    
    clear
    
    echo "Please pair and connect your device."
    read -p "Press any key to initialize audio..." -n 1 garbageVar
    
    # Return Example: /org/bluez/29159/hci0/dev_01_23_45_AB_CD_EF
    qPath="$(qdbus --system org.bluez | grep -m 1 "/dev_")"
    
    # Even though the phone says it's connected, it doesn't work
    # unless I hard-reset the connection. Also, AudioSource.Disconnect
    # won't work reliably in this situation, so I tried the Device.Disconnect
    # method which seems to work well for my Gingerbread Hero (Android 2.3).
    qdbus --system org.bluez "${qPath}" org.bluez.Device.Disconnect 1> /dev/null
    sleep 5
    echo "Attempting connection..."
    qdbus --system org.bluez "${qPath}" org.bluez.AudioSource.Connect 1> /dev/null
    
    
    # Return Example: bluez_source.01_23_45_AB_CD_EF
    bluezSource="$(pactl list | grep -m 1 "Name: bluez_source" | cut -c 8-)"
    echo "Bluez Source: ${bluezSource}"
    
    # Return Example: alsa_output.pci-0000_00_10.1.analog-stereo
    alsaSink="$(pactl list | grep -m 1 "Name: alsa_output" | cut -c 8-)"
    echo "Alsa Sink: ${alsaSink}"
    
    # Return Example: 25
    paID="$(pactl load-module module-loopback source="${bluezSource}" sink="${alsaSink}")"
    echo "pactl ID number: ${paID}"
    
    read -p "Press any key to disconnect..." -n 1 garbageVar
    
    pactl unload-module "${paID}"
    qdbus --system org.bluez "${qPath}" org.bluez.AudioSource.Disconnect

Page 7 of 8 FirstFirst ... 5678 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •