nicokaiser / rpi-audio-receiver

Raspberry Pi Audio Receiver with Bluetooth A2DP, AirPlay 2, and Spotify Connect
MIT License
1.36k stars 150 forks source link

Delay/latency when streaming bluetooth audio (especially from Mac) #138

Closed andreiciceu closed 2 years ago

andreiciceu commented 2 years ago

Firstly thanks for this great library, it's amazingly simple to use.

I noticed there's a slight delay(lag) between the source (Macbook) and the output (speakers), ~0.7s. It's especially noticeable when playing youtube videos. Streaming from Android phone seems to have less latency (~0.2s)

It happens randomly, sometimes after i disconnect/reconnect it works ok (when both devices are connected).

Do you have any idea why and how this could be fixed?

-- Model : Raspberry Pi 4 Model B Rev 1.1

nicokaiser commented 2 years ago

I think there is nothing that can be done about this, it seems to be an inherent character of Bluetooth audio connections. When using a Mac, you are much much better off just using AirPlay – the audio quality is much better, and the latency is compensated automatically.