Codumentor logo Codumentor Enterprise

Voice Mode Plugin

The Voice Mode plugin adds Hands-free live voice to the web UI. A realtime speech-to-speech model (OpenAI gpt-realtime-2.1) listens and talks with you directly: it answers in well under a second, follows natural turn-taking, and you can interrupt it mid-sentence. It is the front desk, not the worker — every real request is passed to the agent as a normal conversation turn, and the voice tells you about the agent's progress and its finished answer. It never answers about your code itself.

Every voice feature is reached through the one mic button on the chat input (design: doc/core-dev/design/voice-panel.md):

Hands-free is optional and requires this plugin. Push to talk and read-aloud do not. The live call uses its own live: settings, which borrow the speech: provider credentials by default (see Credentials). For Community-friendly setup, see the English / Hungarian voice guides.

Using it

The mic button appears on the chat input when speech is configured. Hands-free is selectable in the panel when this plugin is enabled and a live-capable key resolves. It needs an open conversation.

  1. Tap the mic and switch the panel to Hands-free. The browser asks for microphone access the first time.
  2. Just talk. The voice answers small talk and clarifying questions itself, and passes anything that needs the agent on to it.
  3. While the agent is working you can: - Steer — add to or refine the same task ("also cover the async path"). Work so far is kept. - Redirect — change the goal. The running turn is cancelled and replaced. - Stop — say stop. Work is cancelled. - Ask "how is it going?" — the voice answers from the agent's progress.
  4. Ask which model the agent is on, or to change it ("switch to Sol", "set the effort to low") — the same choices as the composer's model picker, which then shows the new one. It applies from the agent's next turn. Needs the thinking_modes plugin; the voice's own model is your Voice model setting, not changed by voice. (2026-10-27)
  5. When the agent finishes, the voice sums up its answer (or reads it out — see Finished answers). The full answer is on screen.
  6. If a tool needs approval, the voice tells you what it wants to do and the panel shows Approve / Deny (and pops back to full screen if it was shrunk). A spoken yes/no is off unless the operator allows it (voice_approvals) and you turn on Approve by voice in your voice settings.
  7. Click End (or say "end the voice call") to leave. Agent work keeps running, and the conversation keeps every turn that was sent.

Keep the tab visible: the panel holds a screen wake lock, and browsers may suspend the mic or audio in a background tab. Use HTTPS in production — browsers only expose the microphone on a secure origin (localhost is allowed).

Your voice settings

Each user sets these for themselves; they are stored on the server, so a phone and a desktop behave the same. In the voice chip's popover (docked) or the footer (full screen), hands-free shows Progress updates (and Voice model, where the operator offers more than one), and More voice settings opens the rest under Settings → Extensions → Voice Mode.

SettingChoicesDefaultWhen it applies
Progress updatesOnly when I ask (progress reaches the voice silently; ask "how is it going?"), Occasionally (one spoken update per 20 s at most), Every stepthe operator's speak_progress (off = Only when I ask)at once, also during a call
Voice modelthe operator's live.models — shown only when it offers more than onelive.modelat once: a call in progress reconnects to the new model at its next quiet moment
Finished answersSummarize answers, Read answers out (code stays on screen)the operator's answer_stylefrom your next call
Approve by voiceon / off — shown only where the operator allows itofffrom your next call
Reconnect after5 minutes … the operator's live.max_session_slive.default_session_s (30 minutes)from your next call

The finished answer is always spoken. After your Reconnect after time a call you are still using reconnects: a minute ahead the voice tells you, then you hear a short "Reconnecting…" pause and it carries on where it left off — agent answers and pending approvals included. A call that has gone quiet says goodbye and ends instead, and so does a call that reaches the administrator's total (live.max_total_s).

If the mic is missing, speech is not configured. If Hands-free is greyed out, the plugin is disabled or no live-capable key resolves; if the panel says voice conversation isn't available, the same is true at runtime (for example the API key no longer resolves).

Configuration

plugins:
  - module: codumentor.plugins.voice_mode
    class: VoiceModePlugin
    args:
      enabled: true
      speak_progress: "off"          # each user's default: off (Only when I ask) | brief | full
      answer_style: conversational   # each user's default: conversational | verbatim
      voice_approvals: false         # true lets users turn on approvals by voice
      live:
        model: gpt-realtime-2.1     # the default
        models:                     # what users may pick instead (optional)
          - gpt-realtime-2.1
          - model: gpt-realtime-2.1-mini
            label: "Mini — faster, cheaper"
        voice: marin

Credentials

The live call needs an OpenAI key with Realtime access. live.api_key / live.base_url default to the speech: block's values; the live call never uses speech-to-text or text-to-speech, so a usable live or deployment key does not require speech.enabled. If no deployment key is usable, live calls may use the authenticated user's own stored secret, under the same policy as web speech: that fallback does require speech.enabled: true, speech.allow_user_api_key (default true in Community, false in Enterprise) and the user's user_secrets:manage permission. The secret name is speech.user_api_key_secret (default speech_api_key); save it in Settings → Extensions → User Secrets, preferably Host-only. No key is borrowed from another user.

The key never reaches the browser: the server sets up each call (it relays the browser's WebRTC offer) and hangs it up when the panel closes, the session is swept, or a minute after a connection's limit. Audio then flows directly between the browser and OpenAI.

Parameters

ParameterTypeDefaultDescription
enabledbooltrueMaster on/off.
speak_progressstringoffEach user's default for Progress updates. off — "Only when I ask": progress reaches the voice silently and it answers "how is it going?" from it. brief — "Occasionally": at most one spoken update per 20 s. full — "Every step". Quote "off" in YAML (unquoted it is read as false, which is accepted too).
answer_stylestringconversationalEach user's default for Finished answers: conversational sums the answer up, verbatim reads it out (saying "code on screen" for code blocks).
voice_approvalsboolfalseWhether users may answer a permission prompt with a spoken yes/no. Each user still turns it on for themselves (Approve by voice, off by default): a "yes" heard over a speaker would otherwise approve a tool. A spoken answer goes through the same endpoint as the on-screen buttons, so the permissions: policy applies unchanged; always_allow is never reachable by voice; the on-screen Approve / Deny stay available.
session_ttl_sint300Idle voice sessions are swept after this many seconds. Minimum 30.
live.enabledbooltrueTurn live calls off without disabling the plugin.
live.modelstringgpt-realtime-2.1Realtime model; each user's default.
live.modelslist[]The realtime models users may pick (Voice model). Each entry is a model id or {model, label}; live.model is always offered too. Empty: no choice. A stored choice the list no longer has falls back to live.model. The models share every other live.* setting (voice, reasoning_effort), so list only models that accept them.
live.voicestringmarinOne of alloy, ash, ballad, coral, echo, sage, shimmer, verse, marin, cedar.
live.reasoning_effortstringlowminimal … xhigh. Higher adds latency to every spoken turn.
live.transcription_modelstringgpt-4o-mini-transcribeCaptions of your speech in the panel (the model hears the audio itself). "" turns them off.
live.turn_detectionstringsemantic_vadsemantic_vad (end of turn judged by meaning) or server_vad (by silence).
live.vad_eagernessstringlowsemantic_vad only: low waits longer before deciding you have finished, high answers sooner. It does not change what counts as an interruption.
live.noise_reductionstringnear_fieldnear_field (headset), far_field (laptop or phone speakers, room), or off.
live.max_session_sint1800Longest connection a user may choose (Reconnect after). At its end a call in use reconnects with a compact recap — each response then re-sends less context — and an idle one ends. 60–3600; a connection never runs past 59 minutes (the provider's 60-minute cap).
live.default_session_sint1800A user's Reconnect after until they pick one; never above max_session_s.
live.max_total_sint7200Longest a call may last across reconnects, from its first connection; 0 = no bound (calls still end when idle).
live.digest_per_turn_chars / live.digest_max_turnsint1500 / 5The conversation recap the voice starts each connection with: characters per recapped line, and how many prior turns.
live.api_key / live.base_urlstring""Override the speech: credentials for live calls only.
live.request_timeout_sfloat20Timeout of the server's calls to the provider (call setup, hang-up). 2–120.
capture.levelstringtranscriptsWhat is recorded of each live call for review: transcripts (metrics and the call transcript), metrics (content-free metrics only), or off. See doc/core-dev/design/voice-call-capture.md.
capture.retention_daysint90How long call records are kept. 0 = while the conversation exists.
capture.max_store_mbint512Size cap of the call-record store.

Older configurations written for the retired Read aloud hands-free engine still load: default_engine: pipeline is read as live, and its knobs (mediator_model_role, utterance_silence_ms, utterance_warmup_silence_ms, language_detect_min_speech_ms, pause_reeval_ms, echo_filter, phantom_filter, max_tts_chars_per_turn) are ignored. Remove them when convenient.

Notes

See also