Bluetooth and SD Card #1018
-
Hello, I want to create a project with ESP32 and create something like bluetooth speaker that could play audio from smartphone and SD card. Could I achieve this using this library? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Sure, to implement a bluetooth speaker, just look at the A2DP sink examples Don't forget to read the documentation that can be found in the Readme and Wiki! |
Beta Was this translation helpful? Give feedback.
-
Hello. I'm trying to do an ESP32 project that takes sound from a Blluetooth or SD card and sends it via I2S to a DSP. When bluetooth is stopped the source is SD card, when SD card is stopped the sound is from bluetooth. Control with buttons. Everything works fine with your library. But I need additional control of indicator and DSP. When I put these additional functions in the main loop, the sound from the SD card cracks. I tried splitting the tasks on different CPU cores. So that the SD card (audio.loop();) works on Core 0, and the additional functions on Core 1. But in this case only SD works. Control functions from another cycle do not work. Is there a possible solution to this problem? I am using Arduino IDE, ESP32-WROOM |
Beta Was this translation helpful? Give feedback.
-
There are quite a few solution approaches to your problem
By the way you can find this in the documentation! |
Beta Was this translation helpful? Give feedback.
-
It depends: if you want to release the full memory and be able to start A2DP again this is the only way. |
Beta Was this translation helpful? Give feedback.
Sure, to implement a bluetooth speaker, just look at the A2DP sink examples
Don't forget to read the documentation that can be found in the Readme and Wiki!