Files
linux-voice-assistant/linux_voice_assistant
imonlinux 0e928bd7b3 Update satellite.py
Added internal tracking for an alarm auto-stop:

self._timer_auto_stop_handle: Optional[asyncio.TimerHandle]

On VOICE_ASSISTANT_TIMER_FINISHED:

enables the Stop wake word,

starts the repeating timer_finished_sound alarm as before,

reads state.preferences.alarm_duration_seconds and, if > 0, schedules an auto-stop callback after that duration.

Centralized alarm stopping in helper methods:

_clear_timer_auto_stop() – cancels any pending auto-stop timer.

_stop_timer_alarm(reason: str) – stops the alarm sound, clears flags, unducks music, and removes the Stop wake word from active_wake_words.

_auto_stop_timer_alarm() – invoked by the scheduled timer, calls _stop_timer_alarm("auto_timeout").

Updated behavior paths:

wakeup() now stops a ringing alarm instead of starting a new conversation if a timer is active.

stop() (Stop wake word) stops a ringing alarm first; only falls back to stopping TTS if no alarm is active.

_play_timer_finished() continues to loop the sound until _timer_finished is cleared, then unducks and exits cleanly.
2025-11-29 14:39:46 -08:00
..
2025-08-26 09:30:58 -05:00
2025-11-29 14:37:18 -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-21 16:59:04 -08:00
2025-11-29 14:38:13 -08:00
2025-11-21 11:00:03 -08:00
2025-11-29 14:38:52 -08:00
2025-11-29 14:39:46 -08:00
2025-11-21 17:17:56 -08:00
2025-11-19 18:46:05 -08:00