ai-tts
Text-to-Speech for togo — ElevenLabs + OpenAI TTS drivers (TTS_DRIVER)
Extends ai
togo install togo-framework/ai-ttsStars0
LanguageGo
LicenseMIT
Last push2026-06-25
- ai
- artificial-intelligence
- go
- golang
- llm
- plugin
- text-to-speech
- togo
Readme
togo-framework/ai-tts
Part of the togo framework.
Install
bash
ai-tts Text-to-Speech for togo — multi-provider, one interface.
ai-tts adds text-to-speech to a togo app. It mirrors the togo driver pattern: a
single Synthesize interface with swappable provider drivers, selected by TTS_DRIVER.
Install
bash
Drivers
| Driver | Env | Notes |
|---|---|---|
openai (default) | OPENAI_API_KEY | OpenAI TTS (tts-1, voices: alloy/echo/fable/onyx/nova/shimmer) |
elevenlabs | ELEVENLABS_API_KEY | ElevenLabs (multilingual v2; voice = voice id) |
bash
Add another provider by registering a driver in an init() — see tts.RegisterDriver.
Use (Go)
go
Use (REST)
Mount the handler under /api/ai/tts:
go
bash
Pairs with ai-stt (speech-to-text) and the
ai plugin. MIT.
Premium sponsors
text
Support togo — become a sponsor.