cancel
Showing results for 
Search instead for 
Did you mean: 

How to transmit 16-Bit audio via BLE. - STM32WB5MM-DK

LR.2
Associate III

Hi,

I'm working on transmitting audio over BLE. I have successfully connected SPH0645 mic using I2S and also I have connected speakers for the output. The thing is I don't know how to transmit audio over BLE. I tried creating custom template to notify the audio value buffer. Can anyone help me with this. Thanks in advance.

5 REPLIES 5
Javier1
Principal

transmit audio over BLE to where? android/windows/....

Does your receiver side have (hardware)BLE5.0 at least?

Here you have the theory, you broadcast the audio stream.

https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwjok86dzbz8AhXATqQEHRRRCxgQwqsBegQIEBAE&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DVqwBJlFqh0U&usg=AOvVaw0vuBgxXf--OTPGW6knITEI

we dont need to firmware by ourselves, lets talk
LR.2
Associate III

Hi Javier,

I'm transmitting to my laptop. Using python I receive packets in a bytearray. Then I convert those to audio file (.wav).

I managed to notify the data but the data what I'm getting is not the data what I'm sending.

Remy ISSALYS
ST Employee

Hello,

You can look FP-AUD-BVLINKWB1 function pack which allows to perform full-duplex voice streaming or stereo music streaming over BLE using the advanced Opus compression algorithm.

Best Regards

>>Using python I receive packets in a bytearray. Then I convert those to audio file (.wav).

Are you sure this is fast enough?

we dont need to firmware by ourselves, lets talk

@LR.2​  https://pypi.org/project/opuslib/

we dont need to firmware by ourselves, lets talk