REST
Speech to Text API
This API transcribes speech to text in multiple Indian languages and English. Supports transcription for interactive applications.
Available Options:
- REST API (Current Endpoint): For quick responses under 30 seconds with immediate results
- Batch API: For longer audio files, Follow This Documentation
- Supports diarization (speaker identification)
Note:
- Pricing differs for REST and Batch APIs
- Diarization is only available in Batch API with separate pricing
- Please refer to here for detailed pricing information
Authentication
Request
The audio file to transcribe. Supported formats include WAV, MP3, AAC, AIFF, OGG, OPUS, FLAC, MP4/M4A, AMR, WMA, WebM, and PCM formats. The API automatically detects most codec formats, but for PCM files (pcm_s16le, pcm_l16, pcm_raw), you must specify the input_audio_codec parameter. PCM files are supported only at 16kHz sample rate. The API works best with audio files sampled at 16kHz. If the audio contains multiple channels, they will be merged into a single channel.
Specifies the model to use for speech-to-text conversion.
-
saaras:v4 (default, recommended, latest): Flexible output formats across all modes (transcribe, translate, verbatim, translit, codemix), supporting Global + Indian English and 22 Indic languages.
-
saaras:v3 (legacy; use saaras:v4): State-of-the-art model with flexible output formats. Supports multiple modes via the
modeparameter: transcribe, translate, verbatim, translit, codemix.
Mode of operation. Only applicable when using saaras:v3 (legacy) or saaras:v4 models.
Example audio: ‘मेरा फोन नंबर है 9840950950’
-
transcribe (default): Standard transcription in the original language with proper formatting and number normalization.
- Output:
मेरा फोन नंबर है 9840950950
- Output:
-
translate: Translates speech from any supported Indic language to English.
- Output:
My phone number is 9840950950
- Output:
-
verbatim: Exact word-for-word transcription without normalization, preserving filler words and spoken numbers as-is.
- Output:
मेरा फोन नंबर है नौ आठ चार zero नौ पांच zero नौ पांच zero
- Output:
-
translit: Romanization - Transliterates speech to Latin/Roman script only.
- Output:
mera phone number hai 9840950950
- Output:
-
codemix: Code-mixed text with English words in English and Indic words in native script.
- Output:
मेरा phone number है 9840950950
- Output:
Specifies the language of the input audio in BCP-47 format.
Available Options:
unknown: Use when the language is not known; the API will auto-detect.hi-IN: Hindibn-IN: Bengalikn-IN: Kannadaml-IN: Malayalammr-IN: Marathiod-IN: Odiapa-IN: Punjabita-IN: Tamilte-IN: Teluguen-IN: Englishgu-IN: Gujaratias-IN: Assameseur-IN: Urdune-IN: Nepalikok-IN: Konkaniks-IN: Kashmirisd-IN: Sindhisa-IN: Sanskritsat-IN: Santalimni-IN: Manipuribrx-IN: Bodomai-IN: Maithilidoi-IN: Dogri
Returns segment-level timestamps in the older timestamps format: three parallel lists (words, start_time_seconds, end_time_seconds), where each entry is a chunk of audio that can hold several sentences.
with_timestamps will be deprecated soon. New integrations should use timestamp_granularity instead. Speaker diarization is not supported on the REST API; use the Batch API for diarized transcripts.
Adds timestamps to the response as a list of {text, start, end} objects.
- word: Adds a
wordslist with one entry per word. Supported only bysaaras:v4, in thetranscribe,codemix,verbatim, andtranslitmodes. Any other model or mode returns a400. - segment: Adds a
segmentslist with one entry per chunk of audio, which can hold several sentences. A REST request usually returns a single segment covering the whole clip; Batch splits long audio into chunks at pauses.
Replaces with_timestamps for new integrations. If you also send with_timestamps=true, the response includes both the older timestamps object and the new list.
Input Audio codec/format of the input file. PCM files are supported only at 16kHz sample rate.
List of up to 50 domain-specific terms (names, places, brands, technical terms) to bias recognition toward. Each keyterm can contain up to 64 characters. Put phrases such as New Delhi in one list item; do not send comma-separated terms in one string. Keyterms bias recognition — they do not guarantee that a term will appear in the transcript. Only supported with model=saaras:v4. Sent as a JSON-encoded array in one multipart form field, e.g. keyterms=["Sarvam","New Delhi","Vistaar"]. Do not use the older keyterm or hotwords fields.
Response
This will return the BCP-47 code of language spoken in the input. If multiple languages are detected, this will return language code of most predominant spoken language. If no language is detected, this will be null
Segment-level timestamps in the older parallel-list format. Present only when with_timestamps is true. Will be deprecated soon; use timestamp_granularity and read words or segments instead.
Word-level timestamps, one entry per word in transcript order. Present only when timestamp_granularity is word (saaras:v4 only).
Segment-level timestamps, one entry per chunk of audio. A REST request usually returns a single segment covering the whole clip. Present only when timestamp_granularity is segment.
Float value (0.0 to 1.0) indicating confidence in the detected language. Present when language_code is omitted or set to unknown; omitted (or null) when a specific language code is provided.