ESP32 Voice Commands Processed but LED Unresponsive in MicroPython TinyML Home Automation System

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. Why does the LED remain unresponsive even though commands are being processed correctly? Because my Audio data is being received. yet LED does not react to commands.
# Debugging adjustments
def debug_audio_processing():
# Check microphone status and read sample data
print("Checking microphone...")
data = i2s.read() # Read audio data
if data:
print("Audio data received.")
else:
print("No audio data.")

debug_audio_processing()
# Debugging adjustments
def debug_audio_processing():
# Check microphone status and read sample data
print("Checking microphone...")
data = i2s.read() # Read audio data
if data:
print("Audio data received.")
else:
print("No audio data.")

debug_audio_processing()
2 Replies
Alien Queen
Alien Queen2mo ago
@Enthernet Code It sounds like the issue might be with the command processing logic rather than the audio capture.
Enthernet Code
Enthernet Code2mo ago
okay, would get that checked, Thanks
Want results from more Discord servers?
Add your server