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). |
||
|---|---|---|
| .. | ||
| docs | ||
| i18n/zh-Hans/docusaurus-plugin-content-docs/current | ||
| scripts | ||
| src | ||
| static | ||
| .gitignore | ||
| docusaurus.config.ts | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| sidebars.ts | ||
| tsconfig.json | ||
Website
This website is built using Docusaurus, a modern static website generator.
Installation
yarn
Local Development
yarn start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
Build
yarn build
This command generates static content into the build directory and can be served using any static contents hosting service.
Deployment
Using SSH:
USE_SSH=true yarn deploy
Not using SSH:
GIT_USER=<Your GitHub username> yarn deploy
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.
Diagram Linting
CI runs ascii-guard to lint docs for ASCII box diagrams. Use Mermaid (````mermaid`) or plain lists/tables instead of ASCII boxes to avoid CI failures.