MrBuddyCasino / ESP32_MP3_Decoder

A internet radio and bluetooth speaker project for the Espressif ESP32
774 stars 182 forks source link

Wake up lag in Bluetooth audio path #49

Open digsub opened 6 years ago

digsub commented 6 years ago

I've replicated this excellent project using an ESP32 Dev Board and Adafruit MAX98357A Breakout #3006 such that continuous music streamed from my Android phone to ESP_SPEAKER sounds fine.

My issue, however, is that short, intermittent sound clips from the phone are initially somewhat truncated e.g. "Welcome to Android" might be heard "come to Android." The same audio thru the phone's native speaker is not truncated.

So, judging wake up lag to be at fault, I might prime the Bluetooth audio path by sending brief silence before each sound clip. This seems kludgy though and I'm hoping for deeper understanding and perhaps a better solution. Any thoughts?

Thanks!

MrBuddyCasino commented 6 years ago

I noticed this as well, but haven't investigated. Good luck in your investigation!

digsub commented 6 years ago

I'm glad I'm not the only one with this issue and assuming you won't mind I'll also post to the ESP32 forums for help. I'll update this thread with any solution. Keep up the great work!