Class TranscriptionConfig.Builder
java.lang.Object
com.google.genai.gaos.models.interactions.TranscriptionConfig.Builder
- Enclosing class:
- TranscriptionConfig
-
Method Summary
Modifier and TypeMethodDescriptionadaptationPhrases(List<String> adaptationPhrases) Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.build()customVocabulary(List<String> customVocabulary) Optional.diarizationMode(String diarizationMode) Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.languageCodes(List<String> languageCodes) Optional.mode(TranscriptionConfigMode mode) Discriminated transcription mode options or enum.timestampGranularities(List<String> timestampGranularities) Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.
-
Method Details
-
adaptationPhrases
@Deprecated public TranscriptionConfig.Builder adaptationPhrases(@Nullable List<String> adaptationPhrases) Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.Optional. A list of phrases to bias the ASR model towards. -
customVocabulary
Optional. A list of custom vocabulary phrases to bias the speech recognition model toward recognizing specific terms. -
diarizationMode
Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.Optional. Configures speaker diarization. Supported values: "speaker". -
languageCodes
Optional. BCP-47 language codes providing hints about the languages present in the audio. If omitted or empty, defaults to automatic language detection. -
mode
Discriminated transcription mode options or enum. -
timestampGranularities
@Deprecated public TranscriptionConfig.Builder timestampGranularities(@Nullable List<String> timestampGranularities) Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.Optional. The granularity of timestamps to include in the transcription output. Supported values: "word". If empty, no timestamps are generated. -
build
-