SttOptions configures both transcribe and the streaming calls.
Fields
Defaults for
punctuation and wordTimestamps come from RASTTOptions.defaults() rather
than being hardcoded here, so they follow the C++ core.
Language
Leavelanguage unset to auto-detect. Set it when you know the language: detection costs
time and can pick wrong on short clips.
Word timestamps
Diarization
diarization: true labels who spoke inside the transcription. For a standalone answer to
“who spoke when”, use the diarization namespace instead:
Translation
translateToEnglish: true returns English regardless of the source language, where a plain
transcription returns the original.