Class TranscriptionConfig

java.lang.Object
com.google.genai.gaos.models.interactions.TranscriptionConfig

public class TranscriptionConfig extends Object
TranscriptionConfig

Configuration for speech recognition (transcription).

  • Constructor Details

    • TranscriptionConfig

      public TranscriptionConfig(@Nullable List<String> adaptationPhrases, @Nullable List<String> customVocabulary, @Nullable String diarizationMode, @Nullable List<String> languageCodes, @Nullable TranscriptionConfigMode mode, @Nullable List<String> timestampGranularities)
    • TranscriptionConfig

      public TranscriptionConfig()
  • Method Details

    • adaptationPhrases

      @Deprecated public Optional<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 Optional<List<String>> customVocabulary()
      Optional. A list of custom vocabulary phrases to bias the speech recognition model toward recognizing specific terms.
    • diarizationMode

      @Deprecated public Optional<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 Optional<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 Optional<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.
    • builder

      public static TranscriptionConfig.Builder 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

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

      @Deprecated public TranscriptionConfig withDiarizationMode(@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".
    • withLanguageCodes

      public TranscriptionConfig withLanguageCodes(@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.
    • withMode

      public TranscriptionConfig withMode(@Nullable TranscriptionConfigMode mode)
      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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object