Voice Stop Word Detector (lib/voice-stop-word.ts)

hermes-agent-windows · apps/desktop/src/lib/voice-stop-word.ts · typescript · MIT
voice, ai, lang:typescript

Detects spoken stop commands in hands-free voice chat loops to safely end conversations.

// Source: https://github.com/zapabob/hermes-agent-windows | License: MIT | Copyright 2025 Nous Research
// Provided via justclaw.it.com; keep this notice with the code.
// Spoken stop-word detection for the voice conversation loop.
//
// When someone is in a hands-free "Hey Hermes" voice chat, the natural way to
// end it is to SAY "stop" — not reach for the mouse. Without this, a spoken
// "stop" is just transcribed and sent to the agent as a normal turn, so the
// conversation never ends (the reported bug). This matcher recognises a short
// utterance whose entire content is a stop command and ends the conversation
// instead of submitting it.
//
// Deliberately conservative: it only fires when the WHOLE utterance is a stop
// phrase (optionally addressed to Hermes), so a real turn that

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key