sarvam_text_to_speech
Converts text into spoken audio in 10 Indic languages and English, returning base64 audio and optionally saving the first chunk as a WAV file.
Instructions
Synthesize speech via Bulbul v3. Returns base64 audio; can also save first chunk to a WAV file.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"inputs": "<inputs>",
"target_language_code": "<target_language_code>"
},
"name": "sarvam_text_to_speech"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pace | No | ||
| pitch | No | ||
| inputs | Yes | Up to 3 text chunks per call. Each chunk capped at 500 chars by Sarvam. | |
| speaker | No | Bulbul-v3 voice preset. | anushka |
| loudness | No | ||
| output_path | No | If set, also write the first audio chunk to this absolute path as a WAV file. | |
| speech_sample_rate | No | ||
| enable_preprocessing | No | ||
| target_language_code | Yes |