lukasjapan / bt-speaker

A simple Bluetooth Speaker Daemon for the Raspberry Pi 3
GNU General Public License v3.0
493 stars 94 forks source link

using pulseaudio-module-bluetooth #56

Closed nuthub closed 4 years ago

nuthub commented 5 years ago

a) I failed to make lukasjapan's version work on my Pi 1 Model B. The sound was jittering and broken. So I decided to use lukasjapan's wonderful agent but pulseaudio instead of SBCAudioSink to decode the a2dp encapsulated audio stream.

b) Furthermore I modified the install script to use spoken words by espeak instead of playing service-login.ogg and service-logout.ogg. (that could be separated from the request above)

lukasjapan commented 4 years ago

a) I failed to make lukasjapan's version work on my Pi 1 Model B. The sound was jittering and broken.

This is interesting, I had lags, bad sound quality and issues with pulse audio. In fact, that was the main motivation to create bt-speaker. To bypass pulse entirely and make bluetooth sound work without a sound daemon.

So I think this approach contradicts with the original bt-speaker philosophy and would make more sense in its own repository. It could probably also be achieved by just changing config files without the need of a separate daemon.

I will update the readme to avoid further confusion.

About pin code: I will look into that, there is an other PR already.

b) Furthermore I modified the install script to use spoken words by espeak instead of playing service-login.ogg and service-logout.ogg. (that could be separated from the request above)

Starting to add such gimmicks on default would just bloat the dependency tree with features that not everyone will use. I think the way to go with this one would be to add examples/comments inside the default hook file and let the user decide wether to install and use such features. Even the current sound playing might be better as an opt-in feature to keep things minimalistic.

brknkfr commented 4 years ago

This is interesting, I had lags, bad sound quality and issues with pulse audio. In fact, that was the main motivation to create bt-speaker. To bypass pulse entirely and make bluetooth sound work without a sound daemon.

In my case I actually profit from "better sound" with pulseaudio. When you use https://github.com/EHfive/pulseaudio-modules-bt you can profit from the better codecs like LDAC, APTX, APTX-HD and AAC, otherwise you have to use https://github.com/Arkq/bluez-alsa, which is quiet difficult to install and only supports encoding - not decoding - for some of the codecs.