Sarvam Dictate API Launch: Build Indian-Language Voice Typing with Python, Hinglish and Custom Vocabulary (November 2026)
Speech recognition usually gives an application the words a model heard. Dictation needs one more step: it must turn a spoken correction, a half-finished sentence or a company-specific name into the text the person actually meant to type. On November 23, 2026, Sarvam announced Sarvam Dictate, an API built for that second job. It combines speech recognition with a finishing model and returns both the raw transcript and the cleaned text.
The launch is relevant to developers building voice notes, CRM forms, customer-support tools, messaging, code editors and multilingual mobile apps. Sarvam says the API supports English and 22 Indian languages, offers script choices such as Hinglish and Roman Hindi, accepts application-specific vocabulary and costs ₹0.50 per minute on the pay-as-you-go plan. Those are vendor-published capabilities and prices; test them against your own audio before routing production traffic.
What Sarvam announced
Sarvam Dictate is a hosted API, not a downloadable speech model or a replacement for a complete voice-agent platform. Its documented pipeline pairs Saaras v4 for speech recognition with a version of Sarvam 105B trained to finish dictation. The first stage produces a transcript; the second uses the transcript plus optional vocabulary, reference text, context and formatting preferences to produce the text a person can send or save.
The response keeps both versions. The transcript field records what the speech recognizer heard. The text field contains the finished result. A corrections array reports vocabulary or reference changes, while degraded tells you when the finishing step did not complete. This separation is important: an application should not silently treat every cleaned sentence as a verbatim legal or medical record.
Why this is different from ordinary speech-to-text
Consider someone dictating: “Send the invoice Tuesday—no, sorry, Wednesday—and mention Pydantic.” A conventional transcript may preserve the false start and may spell a technical name phonetically. Dictation cleanup can keep the corrected date, remove the abandoned phrase and use an application-supplied spelling for Pydantic.
Sarvam documents four main output modes:
transcribe: keep the script selected by recognition. Use it for ordinary text and documents.codemix: write each Indian language in its own script while keeping English words and names in Latin letters. This is useful for Hinglish and Tanglish messages.translit: write the whole result in Latin letters, such as Roman Hindi.verbatim: preserve the words as spoken rather than applying normal dictation cleanup. Use this when exact wording matters, then still verify the result.
The style.preset setting controls cleanup separately. clean removes fillers and repeated words and keeps the corrected version of a self-correction. light keeps more of the original wording while adding punctuation. none skips the finishing step. Do not use a clean preset when every hesitation or repeated phrase must remain part of the record.
Custom vocabulary is the most useful application hook
A general speech model cannot know how your customer spells a person's name, a product, a medicine, a ticket ID or a code symbol. Dictate accepts a vocabulary list of up to 1,000 entries. An entry can include the exact spelling, a sounds_like phrase and a short description.
Send only terms likely to appear in the current recording. For a support call, that might mean the customer name, product name and one service plan—not the entire company catalogue. Sarvam's documentation warns that a listed look-alike can replace a similar word even when the original recognition was correct. Always inspect corrections and give the user a chance to review consequential changes.
If the relevant names already appear in a CRM record, agenda or product list, use context.reference instead of manually building a vocabulary. The documented limit is 50,000 characters. context.text can briefly describe the situation, such as “a support note about a broadband outage,” but the documentation says it is not a reliable substitute for vocabulary when an exact name must be right.
Quickstart: call Sarvam Dictate from Python
The shortest route is a clip of 30 seconds or less. Create an API key in the Sarvam dashboard, keep it on your server and set it as an environment variable. This example uses the documented HTTP endpoint directly so it does not depend on a particular pre-release SDK version. The current Dictate quickstart still labels its Python and JavaScript SDK examples as pre-release; check the official SDK page before pinning one for production.
Step 1 — Install the HTTP client
python -m venv .venv
source .venv/bin/activate
pip install requests
export SARVAM_API_KEY="your-server-side-api-key"
On Windows PowerShell, activate the environment with .venv\Scripts\Activate.ps1 and set the key with $env:SARVAM_API_KEY="...". Do not commit the key to Git or put it in a mobile or browser bundle.
Step 2 — Send a short recording
Save a short recording as voice-note.m4a, then create dictate.py:
import json
import os
from pathlib import Path
import requests
api_key = os.environ["SARVAM_API_KEY"]
audio_path = Path("voice-note.m4a")
vocabulary = [
{"word": "Make Loan Eazy", "sounds_like": ["make loan easy"]},
{"word": "Pydantic", "sounds_like": ["pidantic"]},
]
with audio_path.open("rb") as audio:
response = requests.post(
"https://api.sarvam.ai/v2/dictate",
headers={"api-subscription-key": api_key},
files={"file": (audio_path.name, audio, "audio/mp4")},
data={
"language_code": "hi-IN",
"mode": "codemix",
"style": json.dumps({"preset": "clean"}),
"vocabulary": json.dumps(vocabulary),
},
timeout=90,
)
response.raise_for_status()
result = response.json()
print("Raw transcript:")
print(result.get("transcript", ""))
print("Finished text:")
print(result.get("text", ""))
print("Degraded:", result.get("degraded"))
for correction in result.get("corrections", []):
print(
correction.get("heard"),
"->",
correction.get("wrote"),
"(",
correction.get("source"),
")",
)
Run python dictate.py. The example uses hi-IN and codemix so Hindi stays in Devanagari while English product and developer terms remain in Latin letters. Change the language code and mode to match your users. If you know the spoken language, the docs recommend sending it rather than relying on automatic detection for every request.
Step 3 — Handle degraded responses safely
A successful HTTP response does not guarantee that the finishing stage completed. If degraded is not null, the API may return the raw transcript in text. Your application should show that status, retain the raw transcript and offer retry or manual editing where appropriate. Log the x-request-id response header for support diagnostics, but avoid logging raw audio or sensitive transcripts unless your retention policy explicitly allows it.
Use output rules for CRM JSON, not style rules
style.rules changes the form of the dictated text; it is not intended to invent an email, summary or new content. For a CRM form or structured extraction, use output_rules. Describe every field, its type and what to return when the caller did not say a value. The API returns the additional result under output, separately from the finished dictation.
CRM_RULES = """
Return one JSON object with exactly these keys:
{
"customer_name": string or null,
"phone_number": string or null,
"product": string or null,
"quantity": number or null,
"requested_callback_date": string or null
}
Use null when a value was not spoken.
Write names in Latin letters and phone numbers as digits.
Do not calculate totals or invent missing details.
"""
Pass that string as the output_rules form field. Parse output.text with a JSON parser and validate the result against your own schema before writing to a CRM. The documentation recommends doing arithmetic in application code, not asking the model to calculate totals.
Choose the right route for the audio length
| Input | Route | Documented use |
|---|---|---|
| Clip up to 30 seconds | POST /v2/dictate | Immediate response with transcript and finished text; file limit 10 MB. |
| Recording up to 1 hour | POST /v2/dictate/jobs | Background job; poll at least every five seconds, retrieve the result and delete the job when finished. |
| Live microphone | WSS /v2/dictate/ws | Partial transcript events while speaking and a finished dictation after each pause. |
For a long recording, the job endpoint is the right path for a meeting or call recording. The documentation says job results are retained for seven days. Each new job submission is billed as a new request, so do not resubmit just because a poll is still pending. For files around 100 MB or larger, use the documented audio_url option rather than repeatedly uploading a large multipart body.
For live dictation, send audio to the WebSocket from your backend. The server sends partial transcript events for preview and a final dictation event after each pause. The documented live format uses raw mono 16-bit PCM at 8 kHz or 16 kHz, with at most one second of audio per message (or half a second in fast mode). Always send the actual sample rate; declaring 8 kHz for 16 kHz audio can produce incorrect text and double the billed duration.
Important security rule: keep the API key off the client
The live WebSocket requires an API key in a request header. Sarvam explicitly says not to open it directly from a browser because there are no short-lived browser tokens and a long-lived key must not be exposed in a browser or mobile application. Use your backend as the authenticated WebSocket client and relay only the minimum audio and text needed by the front end.
For uploaded clips, the same principle applies: route requests through your backend, enforce user and tenant authorization, limit upload size and duration, and avoid storing audio longer than necessary. Treat transcripts as user-provided content. If the output can trigger a payment, update a customer record or initiate a phone call, require confirmation and validate extracted fields before executing the action.
Pricing and usage limits
The current pricing documentation lists Dictate at ₹0.50 per minute on Pay as you go, ₹0.475 on Pro, ₹0.45 on Growth and ₹0.40 on Business. Pricing is per minute of audio, including silence, and the general pricing page says listed prices exclude GST. Failed calls, failed jobs and degraded clips are not billed; repeating a request or creating a new job can incur another charge. Check the dashboard before estimating a production bill because account limits and plan terms can change.
- Clip: up to 30 seconds and 10,000,000 bytes.
- Job: up to one hour; uploads around 100 MB or more should use
audio_url. - Vocabulary: up to 1,000 entries.
context.reference: up to 50,000 characters;context.text: up to 2,000 characters.style.rules: up to 2,000 characters;output_rules: up to 4,000 characters.- Live session: up to three hours; it closes after 60 seconds without a message.
- Job results: retained for seven days; delete jobs after collecting results.
What the launch benchmarks do—and do not—show
Sarvam reports that, on its real-dictation evaluation, Dictate needed 4.2% of English characters edited versus 7.0% for Gemini 3.5 Transcribe. On its 18-language Indian-language set, it reports 8.8% versus 15.5%. The company says its evaluation used the same audio for each system and a judging process based on Voice Arena's published methodology.
These are vendor-reported results, not an independent reproduction. The launch blog describes recordings from users of Sarvam's Kivi app, and the company plans to release an evaluation set built from recordings whose speakers agree to share them. Treat the figures as a reason to run your own test, not as a guarantee for every accent, microphone, noisy environment, language pair or domain. Build a representative test set from your own support calls and voice notes, and measure both recognition errors and harmful edits such as changed amounts, dates, names or negations.
How Dictate relates to the Sarvam-105B-1711 release
On November 22, Sarvam also announced Sarvam-105B-1711, a new open-weight checkpoint for instruction following, tool use, agentic tasks and Indian languages. Its model card publishes BF16 and NVFP4 weights under Apache 2.0. Sarvam's API changelog says the hosted sarvam-105b and sarvam-105b-conversations IDs now run on the 1711 weights without changing their API request format.
Do not assume the Dictate endpoint is simply the same public checkpoint exposed under another name. Dictate has its own dated dictate-v1 snapshots and a dictation-specific finishing pipeline. There is also a documentation detail worth checking: the launch blog example uses dictate-v1-2026-11-11, while the current clip API reference lists dictate-v1-2026-11-04 and dictate-v1-2026-11-05 as the served snapshots. Do not hard-code the blog example without checking which snapshot the live API accepts. You can omit the model field to use the documented alias, or pin a currently supported dated snapshot after testing how it affects numbers, scripts and names.
Limitations to plan around
- Dictate is not a subtitle service: it does not return SRT or VTT files. Use a speech-to-text route with timestamps when subtitle timing is required.
- There is no built-in translation mode. The documentation suggests asking for translation in
style.rules, but test that workflow separately. - There is no memory between calls. Send the relevant vocabulary or reference context again, or update it during a live session.
- Automatic language detection is not equally evaluated for every supported language. The docs list several accepted languages whose quality is not fully evaluated yet.
- Cleanup can change text. For regulated or high-consequence workflows, keep the raw transcript, show corrections and require human review.
- Dictate is hosted. It is not the same as self-hosting an open-weight model, and audio is sent to Sarvam's service for processing.
Who should evaluate it first?
Dictate is worth testing if your application turns spoken language into a message, note, CRM entry, support summary or form. It is especially relevant when users switch between Indian languages and English, prefer Roman Hindi, or routinely speak names and product terms that your app already knows. It is less suitable as a drop-in choice when you need verbatim forensic transcripts, timestamped subtitles, browser-only WebSocket access or fully on-premises audio processing.
Recommended reading on GyanAangan
- Self-Host Speaches: Build a Local OpenAI-Compatible Speech API with Whisper and Kokoro — for developers who prefer a local speech-to-text and text-to-speech stack.
- Pipecat vs LiveKit Agents vs OpenAI GPT-Live — for building a complete voice-agent call flow around speech, models and tools.
- Transcribe Audio Locally with faster-whisper — for local transcription and timestamp-oriented output.
Official sources and documentation
- Sarvam: Introducing Sarvam Dictate, November 23, 2026.
- Sarvam Dictate API overview and quickstart.
- Dictate best practices: modes, cleanup, vocabulary, context and output rules.
- Official Dictate limitations and limits.
- POST /v2/dictate API reference.
- Long-recording jobs guide and live dictation WebSocket guide.
- Sarvam API pricing and rate limits.
- Sarvam-105B-1711 announcement, NVFP4 model card, BF16 model card and November 22 API changelog.
Practical recommendation
Start with a short clip endpoint and a small, relevant vocabulary. Compare clean, light and verbatim on the same recordings, then inspect the raw transcript, finished text and corrections side by side. Only move to jobs or live WebSockets after you have measured latency, cost, error handling and privacy requirements. For any workflow that changes customer data or triggers an action, validate the structured output and ask the user to confirm before committing it.
