Enthernet Code
Enthernet Code
DIIDevHeads IoT Integration Server
Created by Enthernet Code on 9/26/2024 in #firmware-and-baremetal
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()
3 replies