Files
livekit-agents/python/livekit-plugins/livekit-plugins-vakyam
Théo Monnom 09262038db Harden realtime, worker and recording boundaries
Run realtime DST scenarios through production provider bookkeeping, with
asynchronous transcription, provider failures, response correlation and
cross-provider history coverage. Ignore unknown provider messages and
settle pending operations when streams or host tasks disappear.

Make job phases own their operations, preserve token restrictions on
refresh, validate inference options and contain failures at external
boundaries. Remove the duplicate Rust media benchmark.

Compare recordings against independent speaker PCM and keep transcripts,
provider spans and reports on the session audio clock across wall-clock
corrections. Preserve silence duration in Gladia energy filtering.

Add regression tests and document the provider and recording audit
findings, including the remaining backend waveform issue and two
independently reproduced baseline storage DST failures.
2026-11-18 04:07:42 -08:00
..

Vakyam AI plugin for LiveKit Agents

Support for voice synthesis with Vakyam AI Raaga 1 — text-to-speech for Indian languages.

See https://docs.vakyam.ai/integrations/livekit for provider docs.

Installation

pip install livekit-plugins-vakyam

Or with the LiveKit Agents extra:

uv add "livekit-agents[vakyam]"

Pre-requisites

You'll need an API key from Vakyam. Set it as an environment variable:

export VAKYAM_API_KEY="vak_live_..."

Usage

from livekit.agents import VoiceSession
from livekit.plugins import vakyam

session = VoiceSession(
    tts=vakyam.TTS(
        model="raaga-v1",
        voice="Archana",
        language="ta-IN",
        sample_rate=24000,
    ),
    # ... stt, llm, vad
)

stream() uses the realtime WebSocket API and sentence-tokenizes LLM text so each utterance is one complete sentence (Vakyam does not accept partial tokens). synthesize() uses HTTP streaming (POST /v1/tts/stream) and returns PCM audio.

WebSocket connections are pooled and reused between sequential agent turns. Each active synthesis stream has exclusive ownership of its connection, so an overlapping stream uses a separate connection. On interruption, the plugin sends cancel, drains through Vakyam's cancellation acknowledgement, and returns the healthy connection to the pool.