Overview
livekit-plugins-gnani is a thin LiveKit Agents adapter that wraps the Vachana STT and TTS APIs into LiveKit’s standard stt.STT and tts.TTS base classes. Drop it into any LiveKit voice agent pipeline and get high-accuracy Indian-language speech recognition and low-latency synthesis without managing WebSocket connections yourself.
Installation
gnani-vachana (the core SDK) as a dependency.
Requirements: Python 3.10+
Prerequisites
You need a Gnani API key. Vachana Set your credentials as environment variables:Quick Start
Speech-to-Text
Text-to-Speech
STT — Speech-to-Text
The plugin exposes two STT modes matching the underlying Vachana API:| Mode | Method | Best for |
|---|---|---|
| Streaming (WebSocket) | Default | Live conversations, real-time agents |
| Batch (REST) | STT(mode="rest") | Pre-recorded audio, file-based pipelines |
Streaming (default)
Real-time transcription via WebSocket with Voice Activity Detection. This is the recommended mode for live voice agents.Batch (REST)
File-based transcription in a single synchronous request. Audio clips up to 60 seconds.Code-switching (multilingual)
For audio that mixes Hindi and English, use the experimental Hinglish codes:TTS — Text-to-Speech
The plugin exposes Vachana TTS synthesis with 8 Indian voices.Available Voices
| Voice | ID |
|---|---|
| Sia | sia |
| Raju | raju |
| Kanika | kanika |
| Nikita | nikita |
| Ravan | ravan |
| Simran | simran |
| Karan | karan |
| Neha | neha |
Supported Languages
| Language | Code |
|---|---|
| Bengali | bn-IN |
| English (India) | en-IN |
| Gujarati | gu-IN |
| Hindi | hi-IN |
| Kannada | kn-IN |
| Malayalam | ml-IN |
| Marathi | mr-IN |
| Punjabi | pa-IN |
| Tamil | ta-IN |
| Telugu | te-IN |
| Hinglish (experimental) | en-hi-in-cm |
| Hinglish Latin (experimental) | en-hi-IN-latn |
Further Reading
- STT REST API — file-based transcription reference
- STT Realtime API — WebSocket protocol reference
- TTS REST API — synchronous synthesis reference
- TTS Realtime API — WebSocket TTS reference
gnani-vachanaon PyPI — core SDKlivekit-plugins-gnanion PyPI — this plugin- LiveKit Agents Docs — LiveKit framework reference