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 languageAuto field.Clears the value of languageCodes field.Clears the value of languageHints field.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.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
languageCodes
Setter for languageCodes.languageCodes: Deprecated: use LanguageAuto or LanguageHints instead.
-
languageCodes
@CanIgnoreReturnValue public AudioTranscriptionConfig.Builder languageCodes(String... languageCodes) Setter for languageCodes.languageCodes: Deprecated: use LanguageAuto or LanguageHints instead.
-
clearLanguageCodes
Clears the value of languageCodes field. -
languageAuto
Setter for languageAuto.languageAuto: The model will detect the language automatically. Do not use together with LanguageHints.
-
languageAuto
@CanIgnoreReturnValue public AudioTranscriptionConfig.Builder languageAuto(LanguageAuto.Builder languageAutoBuilder) Setter for languageAuto builder.languageAuto: The model will detect the language automatically. Do not use together with LanguageHints.
-
clearLanguageAuto
Clears the value of languageAuto field. -
languageHints
Setter for languageHints.languageHints: Specifies one or more languages in the audio. Do not use together with LanguageAuto.
-
languageHints
@CanIgnoreReturnValue public AudioTranscriptionConfig.Builder languageHints(LanguageHints.Builder languageHintsBuilder) Setter for languageHints builder.languageHints: Specifies one or more languages in the audio. Do not use together with LanguageAuto.
-
clearLanguageHints
Clears the value of languageHints field. -
adaptationPhrases
Setter for adaptationPhrases.adaptationPhrases: 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: 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. -
build
-