Add Waveshare ESP32-S3 Audio Board#195
Open
jensenbox wants to merge 4 commits intoesphome:mainfrom
Open
Conversation
Add configuration for the Waveshare ESP32-S3 Audio Board as a wake word voice assistant. The board features an ES8311 DAC, ES7210 ADC, TCA9555 I/O expander, 7-LED WS2812 RGB ring, 3 buttons, and a speaker amplifier.
Update on_end to wait 2s + speaker idle before restarting wake word, add wake word restart to on_error after speaker finishes, replace on_idle with on_announcement handler that stops wake word, waits for announcement to complete, then restarts it.
Restarting the microphone (via wake word) in on_end causes an I2S bus conflict because on_end fires before the speaker finishes playing TTS audio. Moving the restart to on_tts_stream_end ensures we wait for the speaker to finish before reclaiming the I2S bus for the microphone. - on_end: now only resets LEDs (no mic restart) - on_tts_stream_end: waits for speaker, then restarts wake word
When a voice command produces no TTS response, on_tts_stream_end never fires and the wake word engine stays stopped. The new fallback script is called from on_end: it waits 5s (giving on_tts_stream_end time to act first), checks if wake word is already running, and only restarts if not.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add support for the Waveshare ESP32-S3 Audio Board as a wake word voice assistant.
Board hardware
Features
Pin mapping reference
Pinout and hardware details: https://github.com/jensenbox/waveshare-esp32-s3-audio
Test plan