Class AudioTranscriptionConfig.Builder
- Enclosing class:
- AudioTranscriptionConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadaptationPhrases(String... adaptationPhrases) Setter for adaptationPhrases.abstract AudioTranscriptionConfig.BuilderadaptationPhrases(List<String> adaptationPhrases) Setter for adaptationPhrases.abstract AudioTranscriptionConfigbuild()Clears the value of adaptationPhrases field.Clears the value of customVocabulary field.Clears the value of diarization field.Clears the value of languageAuto field.Clears the value of languageCodes field.Clears the value of languageHints field.Clears the value of wordTimestamp field.customVocabulary(String... customVocabulary) Setter for customVocabulary.abstract AudioTranscriptionConfig.BuildercustomVocabulary(List<String> customVocabulary) Setter for customVocabulary.abstract AudioTranscriptionConfig.Builderdiarization(boolean diarization) Setter for diarization.abstract AudioTranscriptionConfig.BuilderlanguageAuto(LanguageAuto languageAuto) Setter for languageAuto.languageAuto(LanguageAuto.Builder languageAutoBuilder) Setter for languageAuto builder.languageCodes(String... languageCodes) Setter for languageCodes.abstract AudioTranscriptionConfig.BuilderlanguageCodes(List<String> languageCodes) Setter for languageCodes.abstract AudioTranscriptionConfig.BuilderlanguageHints(LanguageHints languageHints) Setter for languageHints.languageHints(LanguageHints.Builder languageHintsBuilder) Setter for languageHints builder.abstract AudioTranscriptionConfig.BuilderwordTimestamp(boolean wordTimestamp) Setter for wordTimestamp.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
languageCodes
Setter for languageCodes.languageCodes: BCP-47 language codes providing hints about the languages present in the audio. If omitted or empty, defaults to automatic language detection.
-
languageCodes
@CanIgnoreReturnValue public AudioTranscriptionConfig.Builder languageCodes(String... languageCodes) Setter for languageCodes.languageCodes: BCP-47 language codes providing hints about the languages present in the audio. If omitted or empty, defaults to automatic language detection.
-
clearLanguageCodes
Clears the value of languageCodes field. -
languageAuto
Setter for languageAuto.languageAuto: Deprecated: Auto-detection is now the default when language_codes is omitted. This field will be removed in a future version.
-
languageAuto
@CanIgnoreReturnValue public AudioTranscriptionConfig.Builder languageAuto(LanguageAuto.Builder languageAutoBuilder) Setter for languageAuto builder.languageAuto: Deprecated: Auto-detection is now the default when language_codes is omitted. This field will be removed in a future version.
-
clearLanguageAuto
Clears the value of languageAuto field. -
languageHints
Setter for languageHints.languageHints: Deprecated: Use top-level language_codes instead. This field will be removed in a future version.
-
languageHints
@CanIgnoreReturnValue public AudioTranscriptionConfig.Builder languageHints(LanguageHints.Builder languageHintsBuilder) Setter for languageHints builder.languageHints: Deprecated: Use top-level language_codes instead. This field will be removed in a future version.
-
clearLanguageHints
Clears the value of languageHints field. -
customVocabulary
Setter for customVocabulary.customVocabulary: A list of custom vocabulary phrases, which biases the ASR model to improve recognition of these specific terms.
-
customVocabulary
@CanIgnoreReturnValue public AudioTranscriptionConfig.Builder customVocabulary(String... customVocabulary) Setter for customVocabulary.customVocabulary: A list of custom vocabulary phrases, which biases the ASR model to improve recognition of these specific terms.
-
clearCustomVocabulary
Clears the value of customVocabulary field. -
adaptationPhrases
Setter for adaptationPhrases.adaptationPhrases: Deprecated. A list of phrases used for speech adaptation, which biases the ASR model to improve recognition of these specific terms.
-
adaptationPhrases
@CanIgnoreReturnValue public AudioTranscriptionConfig.Builder adaptationPhrases(String... adaptationPhrases) Setter for adaptationPhrases.adaptationPhrases: Deprecated. A list of phrases used for speech adaptation, which biases the ASR model to improve recognition of these specific terms.
-
clearAdaptationPhrases
Clears the value of adaptationPhrases field. -
diarization
Setter for diarization.diarization: Configures speaker diarization.
-
clearDiarization
Clears the value of diarization field. -
wordTimestamp
Setter for wordTimestamp.wordTimestamp: Configures word-level timestamp generation.
-
clearWordTimestamp
Clears the value of wordTimestamp field. -
build
-