Use Cases › Voice Pair Programming with OpenCode
👥
Voice Pair Programming with OpenCode
The Problem
Traditional pair programming requires constant communication. With AI, typing replaces speaking — but that breaks the collaborative feel.
The Solution
OpenCode interrupt restores the conversational flow. Speak to the AI like you would to a human pair programmer. Hear responses while continuing to work.
Workflow
- Start a session /tts-on for audible responses.
- Describe the task conversationally: /ptt "Let's implement a rate limiter using the token bucket algorithm."
- As the AI writes code and explains it via TTS, review the output.
- Interrupt when you disagree: "Use a sliding window instead — it's simpler for this use case."
- The AI acknowledges and adjusts its approach.
- Continue the back-and-forth naturally, just like pairing with a human developer.
Tips
• Voice pair programming works best with a high-quality mic. Background noise confuses both whisper and the AI.
• Use /ptt for longer explanations and voice interruption for quick corrections — they complement each other.
• Set whisperModel to "small" or "medium" for best accuracy with programming vocabulary.