Sarvam AI

Voice cloning

Voice cloning for Indian languages

Turn 10 to 15 seconds of audio into a voice that speaks 12 languages. Use it in Content Studio or build it into your own product.

Clone your voice in

The train to the coast leaves early in the morning, when the platform is still quiet and the tea stalls have only just opened.

Read the sample, or any other text.

Speak for 10–15 seconds, then tap the orb to stop.

Record about 10 seconds, then hear yourself in another language.

10 to 15 sec
Reference clip
A clean voice sample
12
Languages
11 Indian languages and English
1,000
Characters per request
2,500 per WebSocket message
24 kHz
Native output
Up to 48 kHz on request

One voice, twelve languages

Record in any language and generate in any of the twelve. The clone keeps the pace, energy and emotion of your clip.

Reference clip12 seconds · English · one speaker
Generated speechहिन्दी

अगला समय मंगलवार सुबह दस बजे है।

language_code="hi-IN"

Leave language_code out and the API detects the language from the text.

Clone a voice once and use it
in Studio or in your own product

Creators use Content Studio with no code.
Developers call the same model through the API.

Content Studio · Dubbing

Every speaker keeps their own voice

Dub a video with several characters. Each speaker's voice is cloned by default and carries into every target language.

  • Dub into 12 Indian languages
  • A separate cloned voice for each speaker
  • Export video, audio and subtitles
Dub a video
Content Studio · Text to speech

Narrate in your own voice

Paste a script, pick your cloned voice and generate audio in any supported language.

Open text to speech
API

Build it into your product

Python and TypeScript SDKs, REST, HTTP streaming and WebSocket. Use a saved voice or send a reference clip with each request.

Read the quickstart

Built for every kind
of spoken content

Whether you publish, teach, preach or build, your cloned voice carries across every language.

  • Creators

    Reach every language's audience in your own voice

    Post your YouTube videos, Reels or Shorts in all languages at the same time, without any extra effort.

  • Film and OTT

    Dub your content with every character's voice intact

    Each character keeps their own cloned voice across scenes and target languages.

  • Education

    One lecture, followed in every language

    Teach once in your own language. Students follow along in the language they prefer, in the same voice and style as their teacher.

  • Spiritual and devotional

    Carry a discourse to all devotees

    Share a speaker's talks in every supported Indian language, so language is no barrier to the message.

  • Support and IVR

    Carry your brand voice across India

    Greet callers and reply to customers in their language with one consistent brand voice.

  • Apps, games and agents

    Give a product a voice of its own

    Keep one character or assistant voice constant across every language you ship.

For developers

From a short clip to
cloned speech in two calls

Install the SDK with pip install sarvamai or npm install sarvamai.
Authenticate with the api-subscription-key header.

  1. 1

    Record a clean clip

    10 to 15 seconds, one speaker, clean audio. WAV at 16 to 24 kHz works best. No transcript needed.

  2. 2

    Create a voice

    POST /voices/create takes the file, a name and the clip's language. It returns a voice_id and an automatic transcript. Background noise removal is on by default.

  3. 3

    Generate speech

    POST /voices/clone takes your text and exactly one of voice_id or ref_audio. Add language_code when pronunciation must be exact.

  4. 4

    Decode, stream or manage

    Decode the base64 audio from the response, or stream it over HTTP or WebSocket. List, fetch and delete saved voices with the voices endpoints.

import base64
from sarvamai import SarvamAI

client = SarvamAI(api_subscription_key="YOUR_SARVAM_API_KEY")

with open("reference.wav", "rb") as f:
    created = client.voice_cloning.create_voice(
        file=f,
        name="my-voice",
        language="en-IN",
    )
voice_id = created.data.voice_id

response = client.voice_cloning.convert(
    voice_id=voice_id,
    text="नमस्ते, मैं आपकी कैसे मदद कर सकता हूँ?",
)
with open("output.wav", "wb") as out:
    out.write(base64.b64decode(response.audio_b64 or response.audio))

What makes a
good reference clip

The clone copies what it hears: the voice and also the pace, energy and emotion of the clip.

Record it like this

  • One speaker for the whole clip
  • 10 to 15 seconds of natural speech
  • WAV, mono, 16 to 24 kHz
  • A quiet room with a steady microphone distance
  • The delivery you want in the output, held steady throughout

Keep these out

  • Background music or sound effects
  • More than one speaker, which blends the voices
  • Heavy reverb or echo
  • Phone audio at 8 kHz or MP3 under 64 kbps
  • A delivery you do not want copied, such as whispering, shouting or singing

On create, background noise removal is on by default and the API transcribes the clip for you. Reference audio guide

Three ways to get
the audio back

One request

REST

POST /voices/clone

A JSON response with base64 audio. Built-in quality control transcribes short generations and retries the ones that fail.

WAV by default. Also MP3, FLAC, Opus, AAC, linear16, mu-law and A-law.

Stream

HTTP streaming

POST /voices/clone/stream

A binary audio stream. Playback can start after the first sentence.

MP3 by default. Also WAV, linear16, mu-law and A-law.

Live session

WebSocket

GET /voices/clone/ws

A persistent connection for incremental text and multi-turn conversations, up to 2,500 characters per message.

MP3 by default. Also WAV, linear16, mu-law and A-law.

Manage saved voices

Create a voice once and reuse its voice_id. Starter includes 50 saved voices per organization. Delete a voice to free a slot.

  • POST /voices/create

    Create a voice from a reference clip

  • GET /voices

    List voices, filter by name, gender or accent

  • GET /voices/{voice_id}

    Fetch a voice, its transcript and preview links

  • DELETE /voices/delete/{voice_id}

    Delete a voice

Limits at a glance

Recommended reference clip
10 to 15 seconds, one speaker
Inline reference clip on generate
10 MB and 15 seconds
Reference upload when creating a voice
50 MB
Text per request
1,000 characters
Text per WebSocket message
2,500 characters
Saved voices on Starter
50 per organization
Output sample rate
8 to 48 kHz, 24 kHz native
Languages and limits in the docs

Clone only voices you have the right to use

Voice cloning requires consent. Use your own voice or a voice whose owner has given you permission. Commercial use of cloned audio follows the commercial licensing terms.

  • Use your own voice or one you have permission to clone
  • Read the commercial licensing terms before you publish
Commercial licensing

API pricing is per character

₹2.00 per 1,000 characters

The API bills the characters of the text you send. Starter includes 50 saved voices. Pro and Enterprise have higher limits. Content Studio dubbing uses Studio credits.

See API pricing

Voice cloning questions

Give every video and product a voice people recognise Clone a voice in Content Studio or start building with the API.