Class SpeechConfig

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

public class SpeechConfig extends Object
SpeechConfig

The configuration for speech interaction.

  • Constructor Details

    • SpeechConfig

      public SpeechConfig(@Nullable String language, @Nullable String speaker, @Nullable String voice)
    • SpeechConfig

      public SpeechConfig()
  • Method Details

    • language

      public Optional<String> language()
      The language of the speech.
    • speaker

      public Optional<String> speaker()
      The speaker's name, it should match the speaker name given in the prompt.
    • voice

      public Optional<String> voice()
      The voice of the speaker.
    • builder

      public static SpeechConfig.Builder builder()
    • withLanguage

      public SpeechConfig withLanguage(@Nullable String language)
      The language of the speech.
    • withSpeaker

      public SpeechConfig withSpeaker(@Nullable String speaker)
      The speaker's name, it should match the speaker name given in the prompt.
    • withVoice

      public SpeechConfig withVoice(@Nullable String voice)
      The voice of the speaker.
    • 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