Fixing I2S Initialization Error for Voice-Controlled Home Automation on ESP32
Hey guys am developing a home automation voice-controlled system using
MicroPython
and TinyML
on an ESP32
microcontroller to recognize specific voice commands ("turn on" and "turn off") for controlling an LED, How do I set up the ESP32
with an I2S
microphone and an LED
for a voice-controlled system?
Am encountering an error
OSError: I2S Not Found
But I have verified the physical connections of the microphone to the ESP32
.
Re-checked the pin numbers in the I2S
configuration.
Confirmed the ESP32
firmware supports I2S
functionality.
Here's my code
My aim is to resolve the I2S
initialization error
to successfully capture audio input from the microphoneSolution:Jump to solution
Hey @Enthernet Code
Update to the latest MicroPython firmware that supports
I2S
on your ESP32
Verify that the sck
, ws
, and sd
pins are correctly assigned for I2S
functionality, and initialize I2S
with I2S.NUM0
to fix the error...8 Replies
Solution
Hey @Enthernet Code
Update to the latest MicroPython firmware that supports
I2S
on your ESP32
Verify that the sck
, ws
, and sd
pins are correctly assigned for I2S
functionality, and initialize I2S
with I2S.NUM0
to fix the errorOkay @wafa_ath would do this and give u a feedback
After d update everything seems to fall in place, thanks 👍
I don't know python but I have a good feeling of what is happening here
Your package manager is out of sync
somewhere you are downloading version x whereas your system is expecting version y
If you can interpret this in python, you can fix this
Okay thanks for the idea I'll look into this