Use Cases › Accessible Coding with OpenCode
♿
Accessible Coding with OpenCode
The Problem
RSI, carpal tunnel, and other conditions make extended typing painful. Existing voice coding tools have steep learning curves.
The Solution
OpenCode interrupt provides a natural voice interface for AI-assisted coding. Walkie-talkie mode captures speech, AI handles code generation, TTS reads results aloud.
Workflow
- Set up OpenCode with interrupt plugin and whisper (local STT means everything stays offline).
- Configure a large whisper model (medium or large) for maximum accuracy — you don't want to repeat commands.
- Navigate code by asking the AI: /ptt "What does the calculateTotal function do?"
- Hear the explanation via TTS. Ask follow-ups with another /ptt.
- Request code changes: /ptt "Add input validation to the createUser function."
- The AI generates the code. Review by hearing it read back with /tts-speak, then request refinements.
Tips
• For accessibility-focused setups, use whisper medium or large model — accuracy matters more than speed.
• OpenAI API (set OPENAI_API_KEY) provides the most accurate transcription for critical workflows.
• Pair with system-level voice dictation for times when you need to type specific text outside of OpenCode.