Streaming bluetooth audio from phone-esp32-esp32-bluetooth speaker #864
-
Hi everyone, i'm using two esp32 boards for my project. The aim is to send bluetooth audio to the first esp32 via my iphone. Then the first esp32 connects to a second esp32 through the GPIO Pins. The second esp32 then connects to a bluetooth speaker and sends the music it receives from the first esp32. I'm trying to do that by using two examples from the libraries kindly provided by pschatzmann. The first esp32 runs the "bt_music_receiver_simple" example. It just converts the A2DP stream to an i2s signal that is sent to gpio pins as described here: https://github.com/pschatzmann/ESP32-A2DP The second esp32 runs the "stream-i2s-a2dp" example that can be found here: https://github.com/pschatzmann/arduino-audio-tools I'm using the default GPIO Pins. The only thing i changed in the code is obviously the name of the bluetooth speaker. The issue is, that the sound received by the speaker ist extremly noisy. In regular intervals, i can hear a glimpse of the song i'm playing back, then it goes back to undefined noise. When i pause the song, the noise stops. That tells me that something is working, but there is an issue with the conversion of the signal at some point. Does someone know where my mistake lies? I have tried converting to a 32bit i2s signal and then back to a 16bit signal for the second esp32 but it doesn't work at all. I'm trying to play music from the spotify app on my iphone. Is A2DP the wrong protocoll to use? It seems like it's the only bluetooth protocoll supported by the library. I would be very grateful if someone can help me. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You should not ignore my recommendations that can be found in the Wiki It is quite obvious that you need to systematically search for the source of your error: In can be basically everywhere!
|
Beta Was this translation helpful? Give feedback.
You should not ignore my recommendations that can be found in the Wiki
It is quite obvious that you need to systematically search for the source of your error: In can be basically everywhere!