Problem getting i2s mic to output to Analog (ESP32 pin 25/26) #132
-
Seems like this should be simple, following the basic pattern of the existing examples I've tested the setup of the analog output via the streams-memory-mp3-analog and streams-generator-analog examples, They play through the speaker just fine. Here's the debug output
As soon as it starts the copier.copy(), it starts throwing the above errors on every call. The sketch...
I'm not seeing where I've gone off the path. Is there a way to check the status of the i2sStream object to make sure it's in a valid state for the copier to use it? Any other debug tips? Any help appreciated, Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The AnalogAudioStream and I2SStream use the I2S functionality of the ESP32. The ESP32 has 2 I2S ports and if I remember right the analog functionality needs to be on port 0, which is used by default if you do not specify anything. So if you use two ports you need to specify this in the config:
should make the difference... |
Beta Was this translation helpful? Give feedback.
The AnalogAudioStream and I2SStream use the I2S functionality of the ESP32. The ESP32 has 2 I2S ports and if I remember right the analog functionality needs to be on port 0, which is used by default if you do not specify anything.
So if you use two ports you need to specify this in the config:
should make the difference...