Streaming data data via Bluetooth on constant rate from ESP32 to Android

jjamjohnson
Posts: 7
Joined: Thu Nov 12, 2020 10:48 pm

Streaming data data via Bluetooth on constant rate from ESP32 to Android

Postby jjamjohnson » Fri Jan 15, 2021 5:07 pm

Hello everyone.

I have audio samples at 8kHz sample rate and successfully send them to Android phone via Bluetooth SPP.

The issue I am facing is non constant send rate - but rather fluctuates from 1KBps to 44KBps and causes for playback to snap. I can solve or minimize this by increasing buffer size to couple of seconds before i start with playback thus increasing lag.

I suppose that a2dp should be the appropriate way of doing this but Android does not support a2db sink role without recompiling only the other way around.

I could use WiFi but would try to avoid it.

Does anyone have an idea on how to achieve this?

Kind regards

Who is online

Users browsing this forum: Google [Bot] and 64 guests