GuidesHow to Install Streaming TTS on OpenCode

How to Install Streaming TTS on OpenCode

The interrupt plugin includes a built-in streaming TTS engine powered by edge-tts. Responses are spoken as they arrive — no waiting for the full generation to finish.

1
Add the plugin
Include "opencode-interrupt-plugin" in your opencode.json plugin array. The TTS engine is built in — no separate plugin needed.
2
Verify TTS is on
TTS is enabled by default. You can toggle it with /tts-on and /tts-off commands in any session.
3
Choose a voice
Set the EDGE_TTS_VOICE environment variable to change the voice. Default is en-US-AriaNeural. Try en-GB-SoniaNeural or en-AU-NatashaNeural.
4
Adjust the rate
Set EDGE_TTS_RATE to control speed. Default is +25%. Try +0% for normal or +50% for faster output.
Tips
• TTS streams sentence-by-sentence — audio plays the moment a sentence boundary is detected.
• Type /tts-speak "text" to make the plugin speak any text on demand.
• When walkie-talkie recording starts, TTS automatically stops so you can speak without overlap.

Troubleshooting

If TTS is silent, check your audio output device. edge-tts requires an internet connection on first use per voice (caches afterward).

Ready to try it?

Get started free →