Skip to navigation

Instant Voice Cloning in the Python and TypeScript SDKs

The sarvamai Python and TypeScript SDKs now expose Instant Voice Cloning (beta) with the same call shape as Bulbul Text-to-Speech: voice_cloning.convert / voiceCloning.convert for one-shot synthesis, convert_stream / convertStream for HTTP streaming, and voice_cloning_streaming / voiceCloningStreaming for WebSocket sessions (configure → convert → flush). Voice lifecycle helpers (create_voice, list_voices, get_voice, delete_voice) live on the same voice_cloning client. Paths stay under /voices/*. Requires the text_to_speech_voice_cloning capability. See the Instant Voice Cloning overview and install sarvamai ≥ 0.1.37 (Python) or sarvamai ≥ 1.1.12 (TypeScript). Older alphas such as 0.1.31a7 do not include the full streaming APIs.