Voice

Voice

Kollab can listen and speak: your speech becomes chat input and replies are spoken back, sentence by sentence, while the terminal interface stays exactly as it is.

Overview

Voice is a device feature: one process on your machine owns the models, the microphone, the transcript and the speaker. Nothing listens until you turn voice on.

  • Ambient speech - speech you direct at the chat becomes input; everything else stays in the transcript and is ignored
  • Spoken replies - responses are spoken as finished sentences and cancelled when you move on
  • Local by default - transcription, the classifier and the speech engine all run on your device; raw microphone audio is never saved
  • Off by default - a restart never turns the microphone back on by itself

How To Use

Turn voice on in the chat that should answer you with /voice on. The first run downloads and warms the models while the input box stays usable.

/voice                 # Toggle voice for this chat
/voice on              # Make this chat the responding conversation
/voice off             # Release the microphone and cancel unplayed speech
/voice status          # Setup, microphone, transcript and queues
/voice retry           # Retry now (voice also retries on its own)
/voice context 20      # Use 20 previous transcript lines (1-50, default 10)
/voice config          # Open Voice Configuration

/voice config opens Voice Configuration in the terminal, or Settings then Voice in the web UI. Engines, voices and the filters below are all chosen there and saved for this device. Saving never turns the microphone on.

What Gets Heard

A classifier decides which spoken lines are addressed to the chat. Three are available.

  • Laya - the default. A small local model that runs entirely on your device
  • Qwen - Fine-Tuned Qwen3 0.6B, also local, on Apple silicon Macs only. Its weights have no download source yet, so selecting it names the folder they belong in
  • Provider - your active AI provider. This sends transcript text and recent chat context to it and can cost inference charges
/voice classifier            # Decision log: what was heard and what happened
/voice classifier laya      # Default local classifier
/voice classifier qwen      # Apple silicon only
/voice classifier provider  # Use the active AI provider

Unsure speech gets a quick "Sorry, was that for me?" and a yes sends it. Speech older than 30 seconds is kept as context and never sent. Pending speech survives a switch.

Transcription Engine

Whisper Base is the default and runs on the CPU. On Apple silicon Macs you can pick Parakeet v3 under Transcription Engine in /voice config. It is faster, but it downloads 2.5 GB once and cannot be told the agent names. Whisper keeps transcribing while Parakeet prepares and whenever it stops, and /voice status names the engine that is live.

Speech Engine

Replies are spoken by Kokoro by default. VibeVoice is the other choice, with its own voice presets. Both feed one speaker queue, a change applies at the next sentence, and a failed VibeVoice never silently becomes Kokoro. Markdown, code blocks and links are not read aloud, and a reply of just . is silent on purpose.

Echo Cancellation And Speaker Gate

Two optional filters sit in front of transcription. Both are off by default. Turn them on under Echo and Speaker in /voice config.

  • Echo Cancellation - removes voice's own speech from the microphone so its replies stop showing up as heard speech. Talking over voice is heard less reliably
  • Speaker Gate - passes only your voice to the classifier. Other speakers stay in the transcript as context and never reach the agent
/voice enroll          # Save your voiceprint from 30 seconds of speech
/voice enroll forget  # Delete it

Enroll alone in a quiet room. The voiceprint is a set of numbers, never audio, and it stays on your device.

Recovery

Voice recovers on its own. If the voice service dies, setup fails or capture stops, the chat starts voice again after 5 seconds, waiting longer each time up to 2 minutes. A failed classifier keeps speech pending and retries the same way. /voice retry skips the wait and /voice off cancels it. Another chat taking the microphone is not a failure: this one shows Active Elsewhere and stays off.

Agents

Claude Code and other ACP agents speak their replies to mic turns, like a native agent. Attached chats keep audio on the device running the terminal, and no audio model starts in the remote agent.

Configuration

The master switch lives in ~/.kollab/config.json:

{
  "kollabor": {
    "voice": {
      "enabled": false
    }
  }
}

Voice never starts listening from this setting, whatever its value. It always waits for /voice on in a chat. Your data lives in ~/.kollab/voice/ and transcripts expire after 30 days.

Architecture

plugins/voice_plugin.py

The device client and host-side speech bridge. Owns admission decisions and transcript context.

packages/kollabor-voice/ (kollabor_voice)

The device service: models, microphone, transcript and speaker. Local-only protocol, no provider credentials. Includes the classifier workers, the speech queue and the automatic setup.

handlers/voicemode.py

The /voice command, under kollabor/commands/system_commands/.