“What kind of nonsense is this again?” - is happening again with your UPDATE- library code!.. #577
-
ESP32 Wroom-32 connect with I2S to PCM5102I’ve been so foolish to UPDATE the Arduino libraries I use, specifically ESP32-A2DP and arduino-audio-tools. I know very well that this won’t work after update! Could you please leave the libraries that work for the ‘ESP32 Wroom-32’ untouched and instead create drivers that function on the ‘ESP32-A1S’—or whatever it is—in a separate directory or library? (Some of the examples use I2S.H and some time ESP_I2S.h). Simply trying this basic code on ‘ESP32 Wroom-32 connect to the PCM5102’- sounds terrible!
I hope you can update/fix the error so that your libraries work with ESP32-Wroom-32 again!#include "ESP_I2S.h"
#include "BluetoothA2DPSink.h"
const uint8_t I2S_SCK = 32; // Audio data bit clock
const uint8_t I2S_WS = 33; // Audio data left and right clock
const uint8_t I2S_SDOUT = 2; // ESP32 audio data output (to speakers)
I2SClass i2s;
BluetoothA2DPSink a2dp_sink(i2s);
void setup() {
i2s.setPins(I2S_SCK, I2S_WS, I2S_SDOUT);
if (!i2s.begin(I2S_MODE_STD, 44100, I2S_DATA_BIT_WIDTH_16BIT, I2S_SLOT_MODE_STEREO, I2S_STD_SLOT_BOTH)) {
Serial.println("Failed to initialize I2S!");
while (1);
}
a2dp_sink.start("Guitar-Summer-2024");
}
void loop() {
} |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 7 replies
-
I am not aware of any changes from my side that would break your sketch above. Did this sketch really work before ? I don't quite understand that you were writing that you upgraded the AudioTools, but the sketch above is using the Arduino I2S functionality instead. Did you try with an output sketch using the AudioTools I2SStream ? Can you also provide a little bit more detail what the exact issue is ? It does not matter what ESP32 hardware you use: the moving target is the Arduino ESP32 core. |
Beta Was this translation helpful? Give feedback.
-
I noticed that the I2S Api provided by Arduino does not work properly: So please use the AudioTools! |
Beta Was this translation helpful? Give feedback.
-
HelloHere’s how this code sounds when it runs on the test bench!.. See how BLT gets chopped up and transferred to pcm5102. It wasn’t like this before I updated the libraries!.. Audio/Video: 24-06-19.10-44-10.ered.mp4 |
Beta Was this translation helpful? Give feedback.
-
👍Thanks. Now I got the sound back in the guitar case!.. 😉 |
Beta Was this translation helpful? Give feedback.
-
😏One last question!...🙏Do you support or when will you support the ESP 3.0.2 - firmware !.. Arduino IDE 2.3.2 => https://www.arduino.cc/en/software |
Beta Was this translation helpful? Give feedback.
I committed a correction to the A2DP library which should correct your issue: The Arduino I2S API should work now properly as well