Class TranscriptionConfig.Builder

java.lang.Object
com.google.genai.gaos.models.interactions.TranscriptionConfig.Builder
Enclosing class:
TranscriptionConfig

public static final class TranscriptionConfig.Builder extends Object
  • 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

      public TranscriptionConfig.Builder customVocabulary(@Nullable List<String> customVocabulary)
      Optional. A list of custom vocabulary phrases to bias the speech recognition model toward recognizing specific terms.
    • diarizationMode

      @Deprecated public TranscriptionConfig.Builder diarizationMode(@Nullable String 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

      public TranscriptionConfig.Builder languageCodes(@Nullable List<String> 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

      public TranscriptionConfig build()