Skip to main content

LiveKit Agents plugin for Gnani Vachana speech AI — STT & TTS for Indian languages

Project description

livekit-plugins-gnani

PyPI License

LiveKit Agents plugin for Gnani Vachana — high-accuracy Speech-to-Text and low-latency Text-to-Speech for Indian languages.

Vachana is a production-ready speech AI platform by Gnani.ai supporting 10+ Indian languages with 6 voices, real-time streaming, multilingual transcription, and code-switching capabilities.

Installation

pip install livekit-plugins-gnani

This will also install the gnani-vachana core SDK as a dependency.

Prerequisites

You need a Gnani API key. Email speechstack@gnani.ai to get started — all new accounts receive free credits, no credit card required.

Set your credentials as environment variables:

export GNANI_API_KEY="your-api-key"

# For REST STT only (optional):
export GNANI_ORGANIZATION_ID="your-org-id"
export GNANI_USER_ID="your-user-id"

Quick Start

Speech-to-Text

from livekit.plugins.gnani import STT

stt = STT(language="hi-IN")

# Use with a LiveKit voice agent pipeline

Text-to-Speech

from livekit.plugins.gnani import TTS

# REST (default) — single-request batch synthesis
tts = TTS(voice="Karan")

# SSE — streaming via Server-Sent Events (lower latency)
tts = TTS(voice="Karan", synthesize_method="sse")

# WebSocket — real-time streaming via stream() (lowest latency)
tts = TTS(voice="Karan", synthesize_method="websocket")

All three modes work with the standard LiveKit voice agent pipeline. The synthesize_method controls which endpoint synthesize() uses. The stream() method always uses WebSocket regardless of this setting.

Features

STT

  • Batch recognition — REST API (POST /stt/v3) for file-based transcription
  • Real-time streaming — WebSocket API for live audio transcription with VAD
  • 23 Indian languages — Assamese, Bengali, Bodo, Dogri, English (India), Gujarati, Hindi, Kannada, Kashmiri, Konkani, Maithili, Malayalam, Manipuri, Marathi, Nepali, Odia, Punjabi, Sanskrit, Santhali, Sindhi, Tamil, Telugu, Urdu
  • Code-switching — Hinglish (en-hi-IN-latn) and Hindi-English mixed (en-hi-in-cm) for streaming
  • Sample rates — 8 kHz and 16 kHz

TTS

  • REST synthesis — single-request batch audio generation (synthesize_method="rest")
  • SSE streaming — lower-latency chunked synthesis via Server-Sent Events (synthesize_method="sse")
  • WebSocket streaming — lowest-latency real-time synthesis via stream() or synthesize_method="websocket"
  • 6 voices — Karan, Simran, Nara, Riya, Viraj, Raju
  • Modelvachana-voice-v3 with voice cloning support
  • Configurable output — sample rate (8000–44100), encoding (linear_pcm, oggopus), container (raw, mp3, wav, mulaw, ogg)

Supported Languages

STT Languages (Speech-to-Text) — 10 languages

STT uses BCP-47 locale codes (e.g. hi-IN):

Language Code
English (India) en-IN
Hindi hi-IN
Gujarati gu-IN
Tamil ta-IN
Kannada kn-IN
Telugu te-IN
Marathi mr-IN
Bengali bn-IN
Malayalam ml-IN
Punjabi pa-IN

Plus streaming-only experimental: en-hi-IN-latn (Hinglish), en-hi-in-cm (code-mixed).


TTS Languages (Text-to-Speech) — 10 languages

TTS uses ISO 639 language codes (e.g. hi, bn). Pass these via the language parameter.

Language Code
Assamese as
Bengali bn
English en
Hindi hi
Kannada kn
Malayalam ml
Marathi mr
Odia or
Tamil ta
Telugu te

Available Voices

Voice ID Gender Description
Karan Karan Male Bold, Trustworthy
Simran Simran Female Confident, Bright
Nara Nara Female Gentle, Expressive
Riya Riya Female Cheerful, Energetic
Viraj Viraj Male Commanding, Dynamic
Raju Raju Male Grounded, Conversational

Architecture

gnani-vachana (>=0.4.0)   <- Core SDK (REST, WebSocket, SSE clients, voice/language constants)
    |
livekit-plugins-gnani     <- This package (LiveKit Agents adapter)

This plugin is a thin adapter that wraps the gnani-vachana SDK into LiveKit's stt.STT and tts.TTS base classes. Voice lists, language constants, and model definitions are shared with the core SDK.

Documentation

License

Apache 2.0 — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

livekit_plugins_gnani-0.4.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

livekit_plugins_gnani-0.4.0-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file livekit_plugins_gnani-0.4.0.tar.gz.

File metadata

  • Download URL: livekit_plugins_gnani-0.4.0.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for livekit_plugins_gnani-0.4.0.tar.gz
Algorithm Hash digest
SHA256 154d426f971e7f80657df282fa623295d4c5f90d06e813477e5c16ee89cb700b
MD5 9ad0ffeb3bb1a8ddda9682219cd6a4f5
BLAKE2b-256 99eb8fb53588aa568f80c137379964ca8ff919393bbcf9d3b2e19417d2f05a9e

See more details on using hashes here.

Provenance

The following attestation bundles were made for livekit_plugins_gnani-0.4.0.tar.gz:

Publisher: workflow.yml on Gnani-AI-Mintlify/livekit-plugins-gnani

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file livekit_plugins_gnani-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for livekit_plugins_gnani-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7f82e6c77adf0bbbcf520bc66caf4ee3deff546b26c4a3670b16fe5742c0d27e
MD5 9232401fba55706eb044849fd2111546
BLAKE2b-256 d42f759b1d5e16b7d6fd73dddf51be3561ceb437be200bccc26f744d8f6e5593

See more details on using hashes here.

Provenance

The following attestation bundles were made for livekit_plugins_gnani-0.4.0-py3-none-any.whl:

Publisher: workflow.yml on Gnani-AI-Mintlify/livekit-plugins-gnani

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page