AudioTranscriptionConfig

@Serializable
data class AudioTranscriptionConfig(val languageCodes: List<String>? = null, val languageAuto: LanguageAuto? = null, val languageHints: LanguageHints? = null, val customVocabulary: List<String>? = null, val adaptationPhrases: List<String>? = null, val diarization: Boolean? = null, val wordTimestamp: Boolean? = null)

The audio transcription configuration in Setup.

Constructors

Link copied to clipboard
constructor(languageCodes: List<String>? = null, languageAuto: LanguageAuto? = null, languageHints: LanguageHints? = null, customVocabulary: List<String>? = null, adaptationPhrases: List<String>? = null, diarization: Boolean? = null, wordTimestamp: Boolean? = null)

Properties

Link copied to clipboard

Deprecated. A list of phrases used for speech adaptation, which biases the ASR model to improve recognition of these specific terms.

Link copied to clipboard

A list of custom vocabulary phrases, which biases the ASR model to improve recognition of these specific terms.

Link copied to clipboard
val diarization: Boolean? = null

Configures speaker diarization.

Link copied to clipboard

Deprecated: Auto-detection is now the default when language_codes is omitted. This field will be removed in a future version.

Link copied to clipboard
val languageCodes: List<String>? = null

BCP-47 language codes providing hints about the languages present in the audio. If omitted or empty, defaults to automatic language detection.

Link copied to clipboard

Deprecated: Use top-level language_codes instead. This field will be removed in a future version.

Link copied to clipboard
val wordTimestamp: Boolean? = null

Configures word-level timestamp generation.