You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
StackChan V1.6.0: Unintended activation and prolonged conversations with background speech #136
StackChan intermittently initiates conversations without an intentional wake-up request. It may subsequently interpret background television dialogue or conversations between people as speech directed at the assistant.
During observed incidents, StackChan greeted the room without being addressed, asked repeated follow-up questions despite receiving no response, and continued reacting to unrelated speech over several minutes.
In one incident, it indicated that it was ending the conversation but later responded to additional television dialogue.
These observations do not yet establish whether the cause is false wake-word detection, extended listening sessions, or repeated unintended activations.
Expected behavior
Reliable hands-free activation through an intentional wake phrase.
Background television dialogue should not initiate or sustain conversations.
Unanswered greetings should lead to a predictable return to standby.
Explicit conversational endings should end the listening session.
Existing touchscreen and head-petting interactions should remain available.
Requiring touchscreen activation is not an adequate substitute for reliable hands-free interaction. Small touchscreens can be challenging for users with limited hand dexterity or mobility.
Questions for M5Stack
Is this a known issue in factory firmware V1.6.0?
Are wake-word sensitivity, conversation timeout, or reactivation behavior configurable through supported settings?
Is there a recommended way to prevent repeated false activations from television audio?
Are improvements planned that preserve hands-free activation without requiring custom firmware?
Thanks for the detailed report. I checked the published V1.6.0 firmware source (m5stack/StackChan @ 94856a7); the observations are consistent with two separate parts of the AI.AGENT audio path rather than a single wake-word defect.
Conclusion
Wake detection. The wake word is a fixed, pre-trained WakeNet model (CONFIG_SR_WN_WN9_HISTACKCHAN_TTS3) run through the AFE with the ES7210 reference channel (AUDIO_INPUT_REFERENCE true). Detection parameters come from the model/AFE configuration, not from a user setting, and the wake-word audio is not uploaded (CONFIG_SEND_WAKE_WORD_DATA=n), so the server never receives the sample and cannot verify the detection.
Why a conversation can continue. When the server sends tts stop, the device goes straight back to Listening unless the session was started in manual-stop mode. While listening, wake-word detection is off by default, so any microphone audio is treated as the next user turn; there is no fixed device-side listening timeout. The device returns to standby only when the server closes the audio channel (or on a user action/error). One false wake is therefore enough to chain: reply → listen → TV speech accepted as a follow-up → reply → listen. That matches the repeated follow-ups, the several-minute duration, and the response after the assistant said it was ending: a spoken goodbye is model output; it does not by itself close the session on the device.
Evidence class: code-level verification (source-level; runtime not reproduced).
Code locations (V1.6.0 source)
firmware/repos.json: AI.AGENT is xiaozhi-esp32 v2.2.4.
xiaozhi v2.2.4main/audio/wake_words/afe_wake_word.cc:73-75: afe_config_init(..., AFE_TYPE_SR, AFE_MODE_HIGH_PERF), AEC enabled from the reference input; no user threshold is read anywhere.
main/application.cc:531-539: on tts stop, non-manual-stop sessions return to Listening; :950-951 selects that mode; :708-709 a screen tap while listening closes the audio channel.
main/Kconfig.projbuild:732-740: wake-word detection in listening is disabled by default.
firmware/main/hal/board/stackchan_display.cc:256-266: screen tap → ToggleChatState().
Answers to your questions
Known issue? I did not find a separate report of this specific false-activation pattern. The closest thread is Wake word "Hi, StackChan" not recognized + Request for custom wake word support #94, which covers the fixed pretrained wake model and the lack of custom wake phrases — not this behaviour. I cannot confirm a tracked defect entry for your case.
Configurable sensitivity / timeout / reactivation? Not on V1.6.0. The on-device AI.AGENT settings only expose idle movement frequency and idle auto power-off (app_setup/workers/ai_agent.cpp); volume, brightness and timezone are separate. AEC is a build-time option (CONFIG_USE_DEVICE_AEC, see 打开回声消除开关后, 实时语聊,服务端收到的音频没有彻底回声消除? #85), not a user setting. The same is true on V1.6.2.
Recommended mitigation without custom firmware? Keep the device away from the TV speaker and lower the direct TV level; for a fixed acoustic model, distance and level are the only effective knobs. A screen tap while the device is in Listening closes the audio channel and returns it to standby, which ends a chain that started with a false wake. (Tapping while it is speaking aborts the reply and starts listening again, so use the listening state.) The idle auto power-off only applies while idle and does not interrupt an active conversation.
No hardware and no virtual-device validation. Why virtual-device validation was not used: the local StackChan QEMU profile covers display, touch and Wi-Fi and models the ES7210 codec, but AI.AGENT requires a bound device with a live AI-service session, which the emulator does not provide; and a false accept is a statistical property of the acoustic model against your actual room and TV audio, which a synthetic PCM fixture cannot establish. I also did not build the factory image (ESP-IDF 6.1 and the fetched xiaozhi components are not installed here).
The repository README notes that published source can lag the released firmware, so the factory image may differ in details from 94856a7.
The server-side listening/VAD timeout is not in this repository, so I cannot state when the server closes the channel.
If you can capture a USB serial log around one incident, the Wake word detected: ... lines and the following tts/stt messages would show whether each turn came from a new false wake or from the automatic listening window. That is the one piece of information that would let us separate the two causes for your unit.
Activity
m5agent commentedon Nov 18, 2026
Thanks for the detailed report. I checked the published V1.6.0 firmware source (
m5stack/StackChan@94856a7); the observations are consistent with two separate parts of the AI.AGENT audio path rather than a single wake-word defect.Conclusion
CONFIG_SR_WN_WN9_HISTACKCHAN_TTS3) run through the AFE with the ES7210 reference channel (AUDIO_INPUT_REFERENCE true). Detection parameters come from the model/AFE configuration, not from a user setting, and the wake-word audio is not uploaded (CONFIG_SEND_WAKE_WORD_DATA=n), so the server never receives the sample and cannot verify the detection.tts stop, the device goes straight back toListeningunless the session was started in manual-stop mode. While listening, wake-word detection is off by default, so any microphone audio is treated as the next user turn; there is no fixed device-side listening timeout. The device returns to standby only when the server closes the audio channel (or on a user action/error). One false wake is therefore enough to chain: reply → listen → TV speech accepted as a follow-up → reply → listen. That matches the repeated follow-ups, the several-minute duration, and the response after the assistant said it was ending: a spoken goodbye is model output; it does not by itself close the session on the device.Evidence class: code-level verification (source-level; runtime not reproduced).
Code locations (V1.6.0 source)
firmware/repos.json: AI.AGENT is xiaozhi-esp32v2.2.4.firmware/sdkconfig.defaults:15-16:CONFIG_SEND_WAKE_WORD_DATA=n,CONFIG_SR_WN_WN9_HISTACKCHAN_TTS3=y.v2.2.4main/audio/wake_words/afe_wake_word.cc:73-75:afe_config_init(..., AFE_TYPE_SR, AFE_MODE_HIGH_PERF), AEC enabled from the reference input; no user threshold is read anywhere.main/application.cc:531-539: ontts stop, non-manual-stop sessions return toListening;:950-951selects that mode;:708-709a screen tap while listening closes the audio channel.main/Kconfig.projbuild:732-740: wake-word detection in listening is disabled by default.firmware/main/hal/board/stackchan_display.cc:256-266: screen tap →ToggleChatState().Answers to your questions
app_setup/workers/ai_agent.cpp); volume, brightness and timezone are separate. AEC is a build-time option (CONFIG_USE_DEVICE_AEC, see 打开回声消除开关后, 实时语聊,服务端收到的音频没有彻底回声消除? #85), not a user setting. The same is true on V1.6.2.Listeningcloses the audio channel and returns it to standby, which ends a chain that started with a false wake. (Tapping while it is speaking aborts the reply and starts listening again, so use the listening state.) The idle auto power-off only applies while idle and does not interrupt an active conversation.v2.5.2/ esp-sr2.4.7and changes the model from WN9 to WN9L (CONFIG_SR_WN_WN9L_HISTACKCHAN_TTS3), but the post-reply re-listen behaviour is unchanged inv2.5.2and I have no measurement showing a lower false-accept rate, so I would not present it as a fix for this report. User-configurable wake phrases remain unsupported (Wake word "Hi, StackChan" not recognized + Request for custom wake word support #94); discussion Wake word "Hi, StackChan" not recognized + Request for custom wake word support #133 is the right place to track that request.Not covered
94856a7.If you can capture a USB serial log around one incident, the
Wake word detected: ...lines and the followingtts/sttmessages would show whether each turn came from a new false wake or from the automatic listening window. That is the one piece of information that would let us separate the two causes for your unit.Full analysis and code excerpts: m5agent/agent-work-logs@90a7d87