How to change the speaker voice

The speaker parameter lets you choose a specific voice for the speech output.

Speaker Selection

Specify the speaker using the speaker parameter in your request. It is an optional parameter — if omitted, the API uses the default voice (Shubh for bulbul:v3, Anushka for bulbul:v2).

Available Voices — Bulbul v3

Bulbul v3 offers 30+ natural-sounding voices:

Male: Shubh (default), Aditya, Rahul, Rohan, Amit, Dev, Ratan, Varun, Manan, Sumit, Kabir, Aayan, Ashutosh, Advait, Anand, Tarun, Sunny, Mani, Gokul, Vijay, Mohit, Rehan, Soham

Female: Ritu, Priya, Neha, Pooja, Simran, Kavya, Ishita, Shreya, Roopa, Amelia, Sophia, Tanya, Shruti, Suhani, Kavitha, Rupali

Available Voices — Bulbul v2

Female Voices

  • Anushka: Clear and professional
  • Manisha: Warm and friendly
  • Vidya: Articulate and precise
  • Arya: Young and energetic

Male Voices

  • Abhilash: Deep and authoritative
  • Karun: Natural and conversational
  • Hitesh: Professional and engaging

Listen to voice samples on our dashboard: Voice Samples – Sarvam TTS

Example Code

1from sarvamai import SarvamAI
2from sarvamai.play import save
3
4# Initialize the REST client
5client = SarvamAI(api_subscription_key="YOUR_SARVAM_API_KEY")
6
7# Generate speech using REST
8audio = client.text_to_speech.convert(
9 text="Welcome to Sarvam AI!",
10 model="bulbul:v3",
11 target_language_code="en-IN",
12 speaker="shubh"
13)
14save(audio, "output1.wav")