SBC decoder With i2s out not working #751
Replies: 3 comments
-
After some modification in my own logic now in sender and receiver I am getting same microphone plot In my previous/above plot their was different in frequency due to bug in my own logic but now in below plot it look same and correct . one plot is of esp1 and second is esp2 after decoder . It look different because it have approx. 1 sec delay may be because SBC other wise pattern is same . also test with sine wave and both are same . but my issue is when i replace csv to i2s i am getting noise only in speaker . |
Beta Was this translation helpful? Give feedback.
-
i perform and with ESP2 WITH I2S OUT I AM GETTING SOUND CLIPING . Pls listen it , its Breaking may be ? what else the reason ? WhatsApp.Video.2023-04-07.at.11.50.03.mp4 |
Beta Was this translation helpful? Give feedback.
-
With csv out i am getting proper sine wave but with i2s out of SAME SNE WAVE i am getting only distortion ? why ? Below is mage of esp2 decoder csv out . |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
EPS1-i2s-in -SBC encoder ----ESPNOW----- EPS2-SBC Decoder-CSV
CsvStream<int16_t> csv;
EncodedAudioStream decStream(csv, dec);

Working Above perfectly i thing because of below plotter .
however if i change csv to i2s i get only noise
I2SStream i2s;
EncodedAudioStream decStream(i2s, dec);//EncodedAudioStream decStream(csv, dec);
EPS1-i2s -SBC encoder ----ESPNOW----- EPS2- SBC Decoder-i2s dac ..
This i2s out configuration .
auto config = i2s.defaultConfig(TX_MODE);
config.pin_ws =26;
config.pin_bck = 27;
config.pin_data =25;
config.sample_rate = 44100;
config.bits_per_sample = 16;
config.channels = 2;
i2s.begin(config);
I2s hardware or pins are ok because audio is playing from SPIFFS.
For ESPNOW i am not using your API because i will merge other data in future as i discuss with you in my other threats but ESPnow is working because plotter result is good.
So why i am getting only noise when speak in microphone ?
Beta Was this translation helpful? Give feedback.
All reactions