Kitta Audio Docs
Integration GuidesThird-Party Integrations

OpenCode Telegram Bot Setup

Configure Kitta Audio TTS for OpenCode Telegram Bot and receive spoken coding-assistant replies in Telegram.

Connect Kitta Audio TTS to OpenCode Telegram Bot

OpenCode Telegram Bot supports a separate OpenAI-compatible TTS URL. Its /tts toggle turns coding-assistant responses into Telegram audio.

Configure environment variables

Add these values to the bot's .env:

TTS_PROVIDER=openai
TTS_API_URL=https://fishaudio.org/v1
TTS_API_KEY=YOUR_API_KEY
TTS_MODEL=fishaudio-s21pro-flash
TTS_VOICE=00a1b221-6137-4b73-ad62-b0cbce134167

Restart the bot, then send /tts in Telegram. Ask OpenCode for a short response and confirm that an audio message is delivered. The toggle is stored in the bot settings.

Security and troubleshooting

  • .env contains both the Telegram bot token and Kitta Audio key; never commit it.
  • No audio: make sure /tts is enabled and inspect the TTS status code in bot logs.
  • 401/402: verify TTS_API_KEY and API credits.