Class TranscriptionConfig
java.lang.Object
com.google.genai.gaos.models.interactions.TranscriptionConfig
TranscriptionConfig
Configuration for speech recognition (transcription).
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.static TranscriptionConfig.Builderbuilder()Optional.Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.booleaninthashCode()Optional.mode()Discriminated transcription mode options or enum.Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.toString()withAdaptationPhrases(List<String> adaptationPhrases) Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.withCustomVocabulary(List<String> customVocabulary) Optional.withDiarizationMode(String diarizationMode) Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.withLanguageCodes(List<String> languageCodes) Optional.Discriminated transcription mode options or enum.withTimestampGranularities(List<String> timestampGranularities) Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.
-
Constructor Details
-
TranscriptionConfig
-
TranscriptionConfig
public TranscriptionConfig()
-
-
Method Details
-
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.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. -
builder
-
withAdaptationPhrases
@Deprecated public TranscriptionConfig withAdaptationPhrases(@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. -
withCustomVocabulary
Optional. A list of custom vocabulary phrases to bias the speech recognition model toward recognizing specific terms. -
withDiarizationMode
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". -
withLanguageCodes
Optional. BCP-47 language codes providing hints about the languages present in the audio. If omitted or empty, defaults to automatic language detection. -
withMode
Discriminated transcription mode options or enum. -
withTimestampGranularities
@Deprecated public TranscriptionConfig withTimestampGranularities(@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. -
equals
-
hashCode
public int hashCode() -
toString
-