Skip to main content

Fields

The two defaults are public constants read from the proto defaults, so reference them rather than a literal:

Language

Leave language unset to auto-detect. Set it when you know the language: detection costs time and picks wrong on short clips.

Word timestamps

Use these for captions, or to seek a player to a spoken word.

Diarization

diarization = true labels speakers inside the transcription. For a standalone “who spoke when” answer over a recording, use the diarization namespace:

Translation

translateToEnglish = true returns English regardless of the source language.