How to adjust the pace (speed)

The pace parameter controls the speed at which the speech is delivered.

It is optional — if omitted, the default value is 1.0 (normal speed).

  • bulbul:v3 range: 0.5 (slowest) to 2.0 (fastest)
  • bulbul:v2 range: 0.3 (slowest) to 3.0 (fastest)
  • Values < 1.0 slow the speech down; values > 1.0 speed it up.

Pace Recommendations by Use Case

Pace ValueEffectRecommended Use Case
0.5 – 0.7Very slow, deliberateAccessibility tools, elderly users, pronunciation guides
0.8 – 0.9Relaxed, measuredEdTech narration, meditation/wellness apps, tutorials
1.0Natural speed (default)Conversational agents, general-purpose TTS
1.1Slightly briskNotifications, news briefings, professional IVR
1.2 – 1.5Fast, energeticQuick summaries, high-engagement marketing audio
1.6 – 2.0Very fastScreen readers, speed-listening (use with caution)

Start at 1.0 (natural) or 1.1 (brisk, professional contexts). Avoid values above 1.5 unless specifically building speed-listening features.

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 pace=1.5 # Increase pace for faster speech
13)
14save(audio, "output1.wav")