Skip to content

Voice: exit hands-free mode command word — return to text mode #165

Description

@proagentstore

Summary

Add a configurable command word that exits hands-free mode and returns the UI to standard text input mode. This follows the same pattern as the other voice command words (e.g. the unmute keyword in #152).

Default keyword

stop session

Behaviour

  1. While hands-free mode is active, the SpeechRecognition instance listens for the configured command word alongside normal dictation.
  2. When the command word is detected:
    • Hands-free mode is deactivated.
    • The microphone / SpeechRecognition loop is stopped.
    • The UI reverts to standard text input mode (same state as if the user had manually toggled the hands-free switch off).
  3. No message is sent to the agent — this is a control command only.

Configuration

  • The keyword should be user-configurable (same settings surface as the other command words).
  • Default value: "stop session"

Related

Acceptance criteria

  • Saying "stop session" (or the configured keyword) while in hands-free mode exits hands-free and restores text mode.
  • The keyword is configurable in user settings.
  • No accidental trigger when the phrase appears mid-sentence in normal dictation (debounce / exact-match check).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestvoiceVoice / STT / TTS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions