PDA

View Full Version : Playing Bluetooth audio via piCorePlayer



TheLastMan
2017-11-19, 15:28
Hi, really like my piCorePlayer for playing my FLAC music collection on my NAS using the LMS Squeezebox system, and occasionally use Airplay from my iPad. However, I would like to be able to play audio to the piCorePlayer using a bluetooth connection from my Android phone. Is there any way I can add Bluetooth receiver/audio function to piCorePlayer?

Phone -> piCorePlayer (RP3) with IQaudIO DAC and bluetooth -> amplifier and speakers via IQaudIO RCA (phono) sockets?

Thanks for any suggestions.

drmatt
2017-11-20, 08:28
Technically yes (wavinput plugin if you have an audio capture device) but you may be as well to buy a Bluetooth-enabled amp or active speaker instead.


Transcoded from Matt's brain by Tapatalk

bpa
2017-11-20, 08:35
Hi, really like my piCorePlayer for playing my FLAC music collection on my NAS using the LMS Squeezebox system, and occasionally use Airplay from my iPad. However, I would like to be able to play audio to the piCorePlayer using a bluetooth connection from my Android phone. Is there any way I can add Bluetooth receiver/audio function to piCorePlayer?

Phone -> piCorePlayer (RP3) with IQaudIO DAC and bluetooth -> amplifier and speakers via IQaudIO RCA (phono) sockets?

Thanks for any suggestions.
According to paul of pCP bluez-alsa will make it work but no details see http://forums.slimdevices.com/showthread.php?107788-Bluetooth-speaker-with-pcP&p=892464&viewfull=1#post892464

edit:

Ignore above - wrong way - you want phone to pCP - bluez-alsa does Pcp to BT speaker.

TheLastMan
2017-11-20, 12:38
Technically yes (wavinput plugin if you have an audio capture device) but you may be as well to buy a Bluetooth-enabled amp or active speaker instead.


Transcoded from Matt's brain by TapatalkI don't need to route BT audio via LMS, just play using the RPi on which PCP is installed. I can always add a dongle to the amp but that is another input to the amp, another power supply, another box and a manual switch when I want to flip between LMS and BT.

PCP on the RPi already offers Apple Airplay which is run as a separate process outside of LMS and means I can play audio from my iPad to the amp with no extra hardware and no switching (I use it for playing Audible books). However BT is more compatible and ubiquitous so generally more useful.

Sent from my F5121 using Tapatalk

tcutting
2017-11-20, 12:54
Hi, really like my piCorePlayer for playing my FLAC music collection on my NAS using the LMS Squeezebox system, and occasionally use Airplay from my iPad. However, I would like to be able to play audio to the piCorePlayer using a bluetooth connection from my Android phone. Is there any way I can add Bluetooth receiver/audio function to piCorePlayer?

Phone -> piCorePlayer (RP3) with IQaudIO DAC and bluetooth -> amplifier and speakers via IQaudIO RCA (phono) sockets?

Thanks for any suggestions.

That's a feature I'd really like to have as well.
I have a stand-alone PiCorePlayer in my garage with an integrated amp and outdoor speakers which is basically built-in. My smartphone is Android, so Airplay doesn't work.

drmatt
2017-11-20, 12:55
It's a bit of a black art getting the Bluetooth stack to do anything useful on Linux, so the odds of getting a working Bluetooth audio receiver in software on a bluetooth-equipped rpi3 is low. So you are still looking at a secondary Bluetooth receiver with PSU. I recently swapped a kitchen amp for an all in one class D with Bluetooth, and it works pretty well.


Transcoded from Matt's brain by Tapatalk

Roland0
2017-11-20, 15:05
There is already support for bluez-alsa on pcp - see here (http://forums.slimdevices.com/showthread.php?108037-Experimental-Bluetooth-Speaker-support-in-piCorePlayer-3-22)
bluez-alsa supports both playback to and recording from a bluetooth device, however, it seems the setup for recording isn't included in the pcp package, so this would have to be done manually.
Since the basic config and the pairing of the BT device has been taken care of, this should be fairly straightforward (in theory - I have no experience with pcp)
See my howto (http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio)) for details.
Note: pcp-bt seems to save the device name in /home/tc/.pcp-bt-device

drmatt
2017-11-21, 00:24
The author of PCP doesn't think so, istr a thread talking about this before. Personally, I've never had much success even getting a rpi3 to remain paired with a Bluetooth keyboard let alone offering anything more complex reliably.


Transcoded from Matt's brain by Tapatalk

paul-
2017-11-21, 06:01
I gave it another try. I could get my iPhone paired, but nothing would play. Bluealsa is much a work in progress.

Roland0
2017-11-21, 17:18
I gave it another try. I could get my iPhone paired, but nothing would play. Bluealsa is much a work in progress.

Personally, I've never had much success even getting a rpi3 to remain paired with a Bluetooth keyboard let alone offering anything more complex reliably.
My experience has been more positive - using the built-in Bluetooth on a rpi3 with a headphone (playback) or an Android phone (streaming) has worked flawlessly for me, and the bluez-alsa setup worked immediately (on a system without pulesaudio).
So I guess there is an element of chance involved.

Wildeke
2017-12-12, 11:32
Hi, i also would like to see the possibility to connect my family members bluetooth phones to the PiCorePlayers around the house. They are Rpi3 + TouchScreen + HiFiBerry AMP+ build into the wall. The speakers are ceiling or wall mounted. Since the AMP is fitted on the Rpi3 board, replacing them with a bluetooth aware receiver is not an option.
I also read the github /Arkq/bluez-alsa topic but i am not "smart" enough to test drive this.
If i understand it well i could install bluez-alsa on my running PiCorePlayer v3.22 and pair a bluetooth Phone or tablet to it in order to stream the audio through the HiFiBerry AMP+. Or is it more complex? is it possible that this feature is added to the PiCorePlayer GUI like the Shairport-sync had been added?

jmccoy555
2018-01-02, 10:25
Hi, i also would like to see the possibility to connect my family members bluetooth phones to the PiCorePlayers around the house. They are Rpi3 + TouchScreen + HiFiBerry AMP+ build into the wall. The speakers are ceiling or wall mounted. Since the AMP is fitted on the Rpi3 board, replacing them with a bluetooth aware receiver is not an option.
I also read the github /Arkq/bluez-alsa topic but i am not "smart" enough to test drive this.
If i understand it well i could install bluez-alsa on my running PiCorePlayer v3.22 and pair a bluetooth Phone or tablet to it in order to stream the audio through the HiFiBerry AMP+. Or is it more complex? is it possible that this feature is added to the PiCorePlayer GUI like the Shairport-sync had been added?

Hi, a bit off topic (sorry guys) but can you share any info or pictures of how you 'build into the wall'? Maybe on a separate thread?? I'm looking to do this any looking for mounting options.

Thanks.

phin586
2018-01-03, 14:57
I too am also interested in this. That would be awesome for my garage speakers.

LuFi
2018-01-07, 08:39
My experience has been more positive - using the built-in Bluetooth on a rpi3 with a headphone (playback) or an Android phone (streaming) has worked flawlessly for me, and the bluez-alsa setup worked immediately (on a system without pulesaudio).
So I guess there is an element of chance involved.

Hi Roland,

Can you please post your config / what you changed to get this working and pair a Phone ?

Roland0
2018-01-10, 17:31
Can you please post your config / what you changed to get this working and pair a Phone ?

Have you tried the procedure described here (http://forums.slimdevices.com/showthread.php?108037-Experimental-Bluetooth-Speaker-support-in-piCorePlayer-3-22)? If yes, what exactly isn't working?

M-H
2018-01-16, 16:34
Hi, really like my piCorePlayer for playing my FLAC music collection on my NAS using the LMS Squeezebox system, and occasionally use Airplay from my iPad. However, I would like to be able to play audio to the piCorePlayer using a bluetooth connection from my Android phone. Is there any way I can add Bluetooth receiver/audio function to piCorePlayer?

Phone -> piCorePlayer (RP3) with IQaudIO DAC and bluetooth -> amplifier and speakers via IQaudIO RCA (phono) sockets?

Thanks for any suggestions.

As alternative for Airplay and BT Audio input, I use DLNA.
Samsung phones have the cast build into the player. the older ones at least.
Other phones need one of the free DLNA apps.
Give it a go, If you can reach your set through wifi, you do not need much more.

Greetz M-H

TheLastMan
2018-01-25, 14:27
It's a bit of a black art getting the Bluetooth stack to do anything useful on Linux, so the odds of getting a working Bluetooth audio receiver in software on a bluetooth-equipped rpi3 is low. So you are still looking at a secondary Bluetooth receiver with PSU. I recently swapped a kitchen amp for an all in one class D with Bluetooth, and it works pretty well. Transcoded from Matt's brain by Tapatalk

I find there is a problem with these basic Bluetooth enabled amps, or even the RPi for that matter, there is no easy way to disconnect one phone and pair another. You have to disconnect at the phone end. It really needs a dedicated button on the amp to release the Bluetooth connection so it can be paired with a new device while the previously connected one is still in range. We had a party at Christmas where somebody brought a Bose Bluetooth speaker along. Everyone was choosing music on their phones and we were swapping the Bluetooth continually between one phone and another. There was a simple button on the speaker that enabled that.

I have resigned myself to getting another power brick, dongle and set of RCA cables which will require me to switch inputs manually on the amp.

Times are changing anyway. Disappointingly the rest of the family have kicked out the Squeezebox from the kitchen (along with neat little Class D amp and excellent B&W speakers) in favour of a pair of Tibo active speakers with Bluetooth. They have another two inputs but the family don't want the clutter of more boxes and cables so I am now down to my last Squeezebox - in the living room attached to my proper Naim system that only I listen to.

What it boils down to is everybody "curates" their own music on their own phone (in our case via a Spotify family account) and they simply want to swap from listening on headphones to listening on a speaker, or pair of speakers. They don't want the hassle of opening up a different app on their phone, then the Spotty app in LMS, then going to their library just to get to Spotify to listen to the music on speakers that they were already listening to on headphones.

We are getting a home extension which will release one of the bedrooms to be a study. Hopefully I will be allowed to reinstate the Squeezebox system there!

TheLastMan
2018-02-19, 03:55
Quick update. I have discovered that the Tibo speakers have a USB socket at the back. I thought this was for a music / data connection but apparently it is just 2.4 amp power output socket designed to charge your phone.
This was not being used by anybody else, so I have sneaked my Raspberry Pi based player (piCorePlayer) into the kitchen and hidden it behind the speaker.
It is powered by the USB socket so no extra power brick / wall wart is needed and I bought a very dinky 6 inch RCA cable to connect to one of the two line level inputs in the back of the Tibo speakers.

So discrete I don't think anybody else has noticed yet!

Cleverly the Tibo speakers have an auto-sensing function which turns them on automatically when they sense a music signal at one of the inputs - either bluetooth, or RCA. Very clever.
Shame the sound quality is rather average. Never mind, it will do for casual listening while I am cooking :-)