Intercepting the audio samples #684
Replies: 3 comments 1 reply
-
... just to add, my most favorite candidate was
but I just can't seem to wrap my head around as to how I could make use of that. Maybe I could then even use the second ESP32's I2S-I/F to still be able to playback the audio via an external DAC that I have. |
Beta Was this translation helpful? Give feedback.
-
This is exactly what you can use for this. This is the raw data from the decoder. You don't have to convert anything D/A. With mono, you just take every second value. void audio_process_extern(int16_t* buff, uint16_t len, bool *continueI2S){
for(int i = 0; i < len; i += 2){
int16_t data = buff[i];
// do soomething with data.... }
} |
Beta Was this translation helpful? Give feedback.
-
So audio_process_extern gets called by the decoder and i just have to implement this function? |
Beta Was this translation helpful? Give feedback.
-
Hi!
I just browsed all the readme, WiKi and discussions, but couldn't find how it would be possible to recycle the (for example) simple webradio sketch into feeding an FFT (arduinoFFT.h) to get a spectrum analyzer display driven by the audio data from a web radio stream.
In this case I don't need the I2S (because this interface gets used to hook up the LED matrix panel), just the converted into a mono audio stream data samples. Kinda so (half pseudo code):
Is there already a method or a possibility to do that or would that need yet to be implemented?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions