Flare
Posts: 15
Joined: Wed May 11, 2016 1:55 am

How to pipe audio input from USB sound card to bluetooth headset on a 3B+?

Sat Dec 29, 2018 5:50 pm

I'm able to somewhat hear a .wma file through VLC on my bluetooth headset. (The audio cuts out every second or two, but it's a start)

My goal is to send audio from my cable box to the headset. I'm able to set up the input and output in PulseAudio's Volume Control app, but it isn't showing the audio levels from the USB sound card's input and I'm not sure how to set up the audio input as a 'recording' to send to bluetooth either.

I read somewhere that ALSA may be competing with Pulse, but I also read that Pulse uses ALSA.

I'm willing to start over from scratch if someone knows a way to make this project work properly.


My sound card is a Creative Sound Blaster PLAY! 3 if it helps.

User avatar
Douglas6
Posts: 4860
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: How to pipe audio input from USB sound card to bluetooth headset on a 3B+?

Sat Dec 29, 2018 8:09 pm

I would begin with a fresh Raspbian Stretch install, and leave PulseAudio out of the equation. Newer versions of Raspbian use BlueALSA to integrate Bluetooth audio streams with ALSA; PulseAudio will conflict with that.

You should be able to use ALSA to loop back the USB capture device to the Bluetooth output device. I don't have details on this.

I'd worry about latency, but let us know how you get on.

Flare
Posts: 15
Joined: Wed May 11, 2016 1:55 am

Re: How to pipe audio input from USB sound card to bluetooth headset on a 3B+?

Sun Dec 30, 2018 4:29 am

Douglas6 wrote:
Sat Dec 29, 2018 8:09 pm
I would begin with a fresh Raspbian Stretch install, and leave PulseAudio out of the equation. Newer versions of Raspbian use BlueALSA to integrate Bluetooth audio streams with ALSA; PulseAudio will conflict with that.

You should be able to use ALSA to loop back the USB capture device to the Bluetooth output device. I don't have details on this.

I'd worry about latency, but let us know how you get on.
I found a guide to record a specific input and pipe it to a specific output using ALSA, but the command to list playback devices doesn't include bluetooth devices...

https://iotbytes.wordpress.com/connect- ... pberry-pi/

User avatar
Douglas6
Posts: 4860
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: How to pipe audio input from USB sound card to bluetooth headset on a 3B+?

Sun Dec 30, 2018 4:46 pm

I believe the BlueALSA device name is 'bluealsa'. I think you can have it listed from aplay by editing the ~/.asoundrc file, though I haven't tried that.

My Pi is currently out of commission, but in the next day or two I'll try and have a play with this. Seems like a good application.
Last edited by Douglas6 on Mon Dec 31, 2018 1:21 am, edited 1 time in total.

Flare
Posts: 15
Joined: Wed May 11, 2016 1:55 am

Re: How to pipe audio input from USB sound card to bluetooth headset on a 3B+?

Sun Dec 30, 2018 7:37 pm

Douglas6 wrote:
Sun Dec 30, 2018 4:46 pm
I believe the BlueALSA device name is 'bluealsa'. I think you can have it listed from aplay by editing the ~/asoundrc file, though I haven't tried that.

My Pi is currently out of commission, but in the next day or two I'll try and have a play with this. Seems like a good application.

I appreciate any help you can provide. The retail bluetooth transmitters I've seen either only work with their own cheapo headphones or are super expensive...

It would be wonderful to solve the problem with my own headphones and a spare Pi.

Flare
Posts: 15
Joined: Wed May 11, 2016 1:55 am

Re: How to pipe audio input from USB sound card to bluetooth headset on a 3B+?

Fri Jan 04, 2019 4:02 am

Douglas6 wrote:
Sun Dec 30, 2018 4:46 pm
I believe the BlueALSA device name is 'bluealsa'. I think you can have it listed from aplay by editing the ~/.asoundrc file, though I haven't tried that.

My Pi is currently out of commission, but in the next day or two I'll try and have a play with this. Seems like a good application.

Have you made any progress?

Return to “General discussion”