mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-29 18:46:59 +00:00
Saying EXACTLY a configured stop phrase (default: 'stop') and nothing else now ends the voice conversation instead of being sent to the agent as a prompt. Match is deliberately strict — whole utterance, case-insensitive, surrounding punctuation stripped — so 'stop doing that and try X' still reaches the agent. - tools/voice_mode.py: is_voice_stop_phrase() + voice.stop_phrases config loader (default ['stop'], [] disables, malformed config falls back safely). - hermes_cli/voice.py: shared continuous loop (TUI + desktop) halts on a stop phrase exactly like the silent-cycle limit (fires on_silent_limit so every UI turns voice off); stop_continuous force-transcribe path swallows the phrase without counting a silent cycle. - cli.py: classic CLI push-to-talk/continuous path and barge-in utterance path disable voice mode on a stop phrase. - Config default voice.stop_phrases: ['stop']; docs updated. Tests: tests/tools/test_voice_stop_phrase.py (27 tests, sabotage-verified: loop test fails when detection is disabled); voice suites green (110 + 44 passed). |
||
|---|---|---|
| .. | ||
| developer-guide | ||
| getting-started | ||
| guides | ||
| integrations | ||
| reference | ||
| user-guide | ||
| index.mdx | ||
| user-stories.mdx | ||