text-to-speech
Installation
SKILL.md
Text-to-Speech — Bulbul
Live in-chat TTS → sarvam-mcp (
sarvam_tools_tts_*). This skill = SDK code.
[!IMPORTANT] Auth:
api-subscription-keyheader — NOTAuthorization: Bearer. Base URL:https://api.sarvam.ai(NOT/v1— that prefix is only for the OpenAI-compatible chat endpoint) SDK floor for the code below: Pythonsarvamai>=0.1.29, JSsarvamai@>=1.1.8. On older versions the TTS param istarget_language_code— see Gotchas.
Model
bulbul:v3 — 11 languages, 37 voices (23 male, 14 female; default: shubh), REST/HTTP stream/WebSocket.
Quick Start (Python)
from sarvamai import SarvamAI
from sarvamai.play import save
client = SarvamAI()