Use Cases › Hands-Free Coding with OpenCode
🎙
Hands-Free Coding with OpenCode
The Problem
Typing while reading code, referencing docs, or testing is cumbersome. Switching between keyboard and mouse breaks flow.
The Solution
OpenCode interrupt lets you drive your AI pair programmer entirely by voice. Type /ptt to speak commands, hear responses via TTS, and interrupt when you need to redirect.
Workflow
- Start an OpenCode session with your preferred model (Claude, GPT-4o, or local via Ollama).
- Enable TTS with /tts-on. Responses are spoken as they arrive.
- Type /ptt to start walkie-talkie recording. Speak your question or command.
- Type /ptt again to send. The AI responds audibly.
- If the AI goes in the wrong direction, just speak over it. Voice interruption stops TTS and aborts generation automatically.
- Say your correction. The model pivots with full context.
Tips
• Use a headset mic for best results — it reduces background noise and improves whisper accuracy.
• For complex coding tasks, break them into smaller /ptt interactions rather than long recordings.
• Pair /ptt with voice interruption: use /ptt for deliberate commands, speak naturally for quick corrections.