36 Responses

  1. Chuck w at | | Reply

    Followed your instructions on a fresh install of Raspbian Jesse light and pairing with Amazon echo. I’m able to pair successfully but I only see Amazon as a source and not as a sink (as reported by pactl command). Also, Amazon echo goes silent – I’m assuming that it is sending it’s audio to raspberry pi. I’d there anything I can do to make the echo pair as a sink?

  2. Philippe Rigaux at | | Reply

    Hi, thx for your article. I try to send music to my car audio, I can pair /trust and connect to the car audio.

    But the car audio says “audio paused” it seems to wait to receive a command before to actually play the inputed audio. Using hciconfig I can sent the bytes being send trough Bluetooth..

    Do you have an idea?



  3. Britton Kerin at | | Reply

    An addition: turns out that to avoid terrible choppy slow playback I had to turn scan off once the pairing was all set up (using ‘scan off’ command from bluetoothctl). This could be an issue with my particular bluetooth speaker but if it affects one it probably affects many.

    And my last comment about making sure to unplug the wired headphones was nonsense and should be moderated out of existence if possible.

  4. Dotan Gershony at | | Reply

    Very interesting Post, big thanks for sharing.
    I managed to connect my speaker ok and tried streaming a longer .ogg file. Every time I try it keeps on getting stuck. so far I didn’t manage to get it unstuck and had to reboot the Pi. tried to turn scan off too.
    any Ideas?

    Dotan Gershony

    1. Diogo Antunes at | | Reply

      Been having the exact problem over here, no ideia what to do =/

  5. chury jeong at | | Reply

    Thanks for your post, it was help very much.
    But I have one issue to get help from you.

    RPI3, the latest rasberrypian.

    I followed your post to play music via BT speaker through A2DP.
    but pulseaudio can’t detect BT-Sink when only one BT device connected to my RPI3.
    but when second BT device connected to my RPI3, the second BT A2DP sink can be detected in pacmd.

    pi@raspberrypi:~ $ bluetoothctl
    [NEW] Controller B8:27:EB:2D:4E:EA raspberrypi [default]
    [NEW] Device 7A:78:33:AD:2C:E1 BT SPEAKER // the second BT speaker.
    [NEW] Device 88:C6:26:B5:53:1E UE MEGABOOM // the first BT speaker

    pi@raspberrypi:~ $ pacmd list-sinks
    2 sink(s) available.

    // sinks has 3 devices including embedded audio, but it showed only 2 sink devices.

    pi@raspberrypi:~ $ uname -a
    Linux raspberrypi 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l GNU/Linux

    pi@raspberrypi:~ $ dpkg -l bluez pulseaudio pulseaudio-module-bluetooth
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name Version Architecture Description
    ii bluez 5.43-2+rpi1 armhf Bluetooth tools and daemons
    ii pulseaudio 10.0-1+deb9u1 armhf PulseAudio sound server
    ii pulseaudio-module-b 10.0-1+deb9u1 armhf Bluetooth module for PulseAudio sound serve
    pi@raspberrypi:~ $

    I think, I’m using the latest packages, but pulseaudio does not seem to detect BT audio device correctly.
    Are there any work-around or fix ?

  6. hybrid at | | Reply

    Thanks for the guide, but I’m unable to reach the goal.
    I followed every step, but when I try to play the sound I only head a (barely udible) very low noise.
    Can you help me?

  7. hybrid at | | Reply

    The playing of the audio ends.

    pi@raspberrypi:~ $ paplay –volume=1000
    open(): No such file or directory

    pi@raspberrypi:~ $ paplay -v /tmp/h2g2.ogg
    Opening a playback stream with sample specification ‘float32le 1ch 32000Hz’ and channel map ‘mono’.
    Connection established.
    Stream successfully created.
    Buffer metrics: maxlength=4194304, tlength=256000, prebuf=253444, minreq=2560
    Using sample spec ‘float32le 1ch 32000Hz’, channel map ‘mono’.
    Connected to device alsa_output.platform-soc_audio.analog-stereo (index: 0, suspended: no).
    Stream started.
    Stream underrun.
    Playback stream drained.: 378133 usec.
    Draining connection to server.

    Plugged earphones in JACK – no audio as well! 🙁

  8. Santiago at | | Reply

    Hi, i’m trying to connect a speaker it has microphone too but i’m only interested in making a2dp work. i’m having trouble connectint to it it fails all the time. i did manage to connect it one time following the instructions but it was not recognized on pacmd as cards. i restarted the pi and same issue. i follwed the steps above one by one. is a raspberry pi zero w

  9. Phönix at | | Reply

    Hi, I followed you pulseaudio setup guid from source (http://youness.net/raspberry-pi/bluetooth-headset-raspberry-pi-3-ad2p-hsp) but I can`t run pactl list cards it returns some error (Assertion ‘t->dynamic’ failed at pulsecore/tagstruct.c:88, function extend(). Aborting.
    Aborted) so and if I run pacmd set-default-sink bluez_sink.xx_xx_xx_xx_xx_xx with my bluetooth mac adress it says: Sink bluez_sink.04:FE:A1:33:68:8C does not exist. So I my goal is to run a python3 script with pyttsx3 to read a text but a Pi Zero W has no audio on board and I wanna send it via bluetooth. (I tried a bunch of other guides but nothing is working … sometimes I can get pulseaudio to run via bluetooth but I can`t hear something and the connection dies really fast, and I can`t grab the card with pactl list cards even if I install it (pulseaudio) via apt-get).

Please comment with your real name using good manners.

Leave a Reply