With Instructables you can share what you make with the world, and tap into an ever-growing community of creative experts.
I've also done much research on this, it seems the Digital to Analog Converter on the Pi that is used to create the sound is not that great, seems like high sound fidelity was not a big concern when creating the Pi. You will have to either live with it or get something like HiFiBerry, which is a High Fidelity Audio Hat for the Pi with RCA output.
Turn your Raspberry Pi into a Wireless Portable Bluetooth Audio System A2DP
can some 1 show me how to get it working i followd rabbitILs tutorial but that's realy bad quality please help
did you find a solution?
doesn't work for me, i am running raspbian jessie, i can not see the bluetooth device on an android phone or an ipod touch
Instead of setting up an auto-login, you can configure pulseaudio to not exit after a default time: 1. Go to /etc/pulse/daemon.conf2. Replace the line ; exit-idle-time = 20with exit-idle-time = -1This way, pulseaudio will keep the stream alive. (-1 is used as a placeholder for an infinite amount of time)
change the first line to:#!/bin/sh
Is it possible to transmit from one rpi to another? Or, even better, can the rpi send audio to an android for playback?From what I've seen, http://stackoverflow.com/questions/21104611/how-to-modify-androids-bluetooth-stack-to-enable-a2dp-sink#_=_the bt stack on the android doesn't support a2dp sinking? But maybe things have changed recently... I wouldn't mind using a different bt profile (HFP or HSP ) in order to achieve this!https://www.raspberrypi.org/forums/viewtopic.php?t...
Is it working on Rapsberry pi 3 ?
sudo apt-get install bluez pulseaudio-module-bluetooth python-gobject python-gobject-2 bluez-toolsI get Error:Errors were encountered while processing: libapache2-mod-php7.0E: Sub-process /usr/bin/dpkg returned an error code (1)
I found the problem. In the instructions, we may be adding the rules to the wrong file. For instance, mine did not have 99-inputs.rules but instead its 99-com.rules. I added that additional line to that file instead and it works without needing to type the load-module instruction.
I followed your instruction and it worked! But the sound quality is terrible. Is there a way to improve it?
Pin code to pair was 0000
I succeeded config raspberryPi 3 with bluetooth audio last night.There are something new in raspberryPi 3 with newest operate system, in pure command environments.I've recorded all the processes https://github.com/jobpassion/raspberryPi/blob/mas...
I am running a Pi MusicBox 0.6.0 and cant get pulse audio to work. After pactl load-module module-loopback i get error module initialization failed or module connection refusedBut parecord and aplay seems to work very well.here is my bluetooth script, the pi user needs to be in the audio grouphttp://pastebin.com/BFVUtSpu
I'm missing the audio.config file what do I need in there for it to work?
Also with the new raspbian updates is this still possible by using this same tutorial?
I have the same issue, don't know how to fix it....
Hi all i was tryng to make it but seems that this guide is too old for the new bluez 5 and pulse audio version infact some of the file are missing or the name is changed, could you please update the guide so i can made it?a big thank you
Thanks for your wonderful posting.But I have some error while following your writing.I am using Raspbian jessie.Whenever I tried to register the service, I met this error.pi@raspberrypi ~ $ sudo update-rc.d bluetooth-agent defaultsinsserv: Service pulseaudio has to be enabled to start service bluetooth-agentinsserv: exiting now!update-rc.d: error: insserv rejected the script headerAlso I have installed 'pulseaudio'.pi@raspberrypi ~ $ sudo apt-get install pulseaudioReading package lists... DoneBuilding dependency treeReading state information... Donepulseaudio is already the newest version.0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.This is my scrpt header of '/etc/init.d/bluetooth-agent'.# Required-Start: $remote_fs $syslog bluetooth pulseaudio# Required-Start: $remote_fs $syslog bluetoothIf I change the header like above by omitting 'pulseaudio', 'sudo update-rc.d bluetooth-agent defaults' doen't make any error. But the bluetooth-agent service doesn't start at boot time of my Raspbian.How can I fix my problem? Please help me. Thank you very much.-from Brian
Hi Guys,this tutorial is working great, but after disconnecting with any device its not possible to connect whit an other device. So i made a little script that restart the bluetooth service after a disconnect. This works fine and now i can play sound from any device at any time.Here the details:-> sudo touch /usr/local/bin/bluewatch.sh-> sudo nano /usr/local/bin/bluewatch.sh-> add this and save________________#!/bin/bashtail -f -n0 /var/log/bluetooth_dev |grep --line-buffered "|remove|" | while read line; do sleep 3; /etc/init.d/bluetooth restart ; sleep 2; /etc/init.d/bluetooth-agent start ;done________________-> sudo chmod 775 /usr/local/bin/bluewatch.sh-> sudo nano /etc/rc.local-> Insert this line directly above "exit 0" :________________/usr/local/bin/bluewatch.sh &________________-> Save the file and close nano.-> Reboot your PIThats all.
Hi Guys,this tutorial is working great, but after disconnecting with any device its not possible to connect whit an other device. So i made a little script that restart the bluetooth service after a disconnect. This works fine and now i can play sound from any device at any time.Here the details:-> sudo touch /usr/local/bin/bluewatch.sh-> sudo nano /usr/local/bin/bluewatch.sh-> add this and save#!/bin/bashtail -f -n0 /var/log/bluetooth_dev |grep --line-buffered "|remove|" | while read line; do sleep 3; /etc/init.d/bluetooth restart ; sleep 2; /etc/init.d/bluetooth-agent start ;done-> sudo chmod 775 /usr/local/bin/bluewatch.sh-> sudo nano /etc/rc.local-> Insert this line directly above "exit 0" :/usr/local/bin/bluewatch.sh &-> Save the file and close nano.Thats all.
Your comment made my setup finally work, thanks!
I also added a two lines to play a sound when connecting and disconnecting: This requires a connected and disconnected wav file in the /etc/bluetooth-sounds directory. Thanks to the OP, I love it!For connect sound:sudo -u pi pactl load-module module-loopback source=$bluez_dev sink=$AUDIOSINK rate=44100 adjust_time=0 >> /var/log/bluetooth_devomxplayer /etc/bluetooth-sounds/connected.wavFor disconnect sound:if [ "$ACTION" = "remove" ]then# Turn on bluetooth discovery if device disconnectssudo hciconfig hci0 piscanomxplayer /etc/bluetooth-sounds/disconnected.wavfi
NICE writeup. Thanks for posting.I got it working but had sporadic popping noises even when not playing anything. The following seemed to fix the issue (well at least for the last 24 hrs - which is good).From: https://dbader.org/blog/crackle-free-audio-on-the-...Edit /etc/pulse/default.pa and remove or comment outload-module module-suspend-on-idle. This is the important part that prevents PulseAudio from sending the audio hardware to sleep. I’ve read that simply using PulseAudio lessened the problem for some people. But on my Pi only disabling idle suspend really helped.Also some other info here: https://wiki.archlinux.org/index.php/PulseAudio/Tr...HTH.
Join 2 million + to receive instant DIY inspiration in your inbox.
Download our apps!
© 2016 Autodesk, Inc.