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

jjamjohnson
Posts: 9
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

lakshay
Posts: 1
Joined: Thu Jan 13, 2022 10:26 pm

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

Postby lakshay » Thu Jan 13, 2022 10:28 pm

Hi,

Did you find any solution to this?

Thankyou!

Who is online

Users browsing this forum: Ice_hedgehog and 89 guests