Files
linux-voice-assistant/linux_voice_assistant
imonlinux 0151b64810 Update audio_engine.py
Behavioral & logging changes

Improved the wake word processing loop to make the following clearly visible in DEBUG logs:

The current set of active wake word IDs (MWW/OWW).

When the Stop wake word:

is activated by the model,

is accepted (i.e. meets refractory timing + is currently allowed), and

is ignored because it is no longer in active_wake_words.

Ensured the special stop model:

Is only treated as “active” when state.stop_word.is_active is True.

Is flipped back to inactive immediately after satellite.stop() is called, so:

The first “Stop” that passes all checks cancels playback and alarm tones.

Subsequent detections in the same moment appear as “TRIGGERED but IGNORED” (expected and now clearly logged).

Why this matters

When the LVA is playing audio (TTS or timer alarm), you can now:

See exactly when the Stop model fires.

Confirm that playback is being canceled at the right time.

Understand why you might see multiple “Stop wake word ACTIVATED” messages even though the alarm already stopped (model still “hearing” the tail, but logically ignored).

This matches the behavior seen in your logs:

At lower volumes / with AEC, stop is reliably accepted and playback stops immediately.

At high volumes without AEC, the model sees far less “clean” speech, so activations are rare or absent.
2025-11-20 20:01:13 -08:00
..
2025-08-26 09:30:58 -05:00
2025-11-19 18:49:43 -08:00
2025-11-18 15:15:46 -08:00
2025-11-20 20:01:13 -08:00
2025-11-17 17:42:40 -08:00
2025-11-17 20:17:44 -08:00
2025-10-12 10:09:45 -07:00
2025-11-17 21:50:53 -08:00
2025-11-17 21:49:21 -08:00
2025-11-19 18:47:01 -08:00
2025-11-17 16:46:15 -08:00
2025-11-17 21:50:08 -08:00
2025-11-20 13:04:46 -08:00
2025-11-19 18:45:16 -08:00
2025-11-19 18:46:05 -08:00