Skip to navigation

Word-Level Timestamps for Saaras v4

Speech-to-text can now time every word. Set timestamp_granularity="word" with model="saaras:v4" on the REST or Batch API, and the response includes a words list with one {text, start, end} entry per word, in seconds from the start of the audio. Word timestamps work in the transcribe, codemix, verbatim, and translit modes.

The same parameter also returns segment-level timestamps in the new format. Set timestamp_granularity="segment" to get a segments list of {text, start, end} entries, one per chunk of audio. This is the same timing that with_timestamps=true returns, in a single list instead of three parallel ones. with_timestamps still works but will be deprecated soon, so new integrations should use timestamp_granularity.

timestamp_granularity is available in the Python SDK from sarvamai 0.1.50 and in the JavaScript SDK from sarvamai 1.1.23. See Word-Level Timestamps.