I have a Bluetooth dongle on my raspberry pi, is there any way I can use Bluetooth to stream my music in addition to using WiFi?
Nice ideal, apt-x would be very cool. Apt-x Sounds mutch better than the A2DP Profil or sbc. I use it sometimes with my CA dacmagic plus.
It can be done using the GStreamer sbcenc and a2dpsink plugins. It allows you to connect to a single A2DP compatible speaker.
@liamw9534 Pls, could you give a howto ?
I could install the bluetooth, connecting with a remote bluetooth-speaker but nothing will be hear.
The log displays for the bluetooth part only; > devices/virtual/input/input0
This means, the sound will be not mixed to the bluetooth ???
I don’t have time to write a HOW-TO right now. But you can find a lot of useful general points about configuring bluez at: https://github.com/liamw9534/mopidy-btmanager/blob/master/README.rst - in particular, read the section on “Configuration” which talks about the bluez audio configuration file and dbus permissions. If you want to use the gst-plugins then also refer to point 3) under the Audio Rendering sub-heading.
From what you are saying, it sounds like your bluetooth speaker has only connected to the AVRCP profile (i.e., remote control) and not the A2DP profile (advanced audio distribution).
The simplest way to check this is to run the following GStreamer pipeline:
gst-launch audiotestsrc ! sbcenc ! a2dpsink device=xx:xx:xx:xx:xx:xx async-handling=true
Where xx:xx:xx:xx:xx:xx is the address of your bluetooth speaker. You should be able to find this out using “hcitool con” to list active connections.
The above pipeline should play a sinusoidal waveform to the speaker. If you can hear it then your bluetooth speaker is working fine. If not then it’s likely that your speaker is not running a compatible audio profile with the bluetooth stack…since you can see an input device the bluetooth authentication is working fine so I don’t think that could be a problem.