Record Class Config.SpeechConfig
java.lang.Object
java.lang.Record
io.github.glaforge.gemini.interactions.model.Config.SpeechConfig
- Record Components:
voice- The voice to use.language- The language of the speech.speaker- The speaker identity.
- Enclosing class:
Config
public static record Config.SpeechConfig(String voice, String language, String speaker)
extends Record
Configuration for speech generation.
-
Constructor Summary
ConstructorsConstructorDescriptionSpeechConfig(String voice, String language) Creates a new SpeechConfig with voice and language.SpeechConfig(String voice, String language, String speaker) Creates an instance of aSpeechConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.language()Returns the value of thelanguagerecord component.speaker()Returns the value of thespeakerrecord component.final StringtoString()Returns a string representation of this record class.voice()Returns the value of thevoicerecord component.
-
Constructor Details
-
SpeechConfig
Creates a new SpeechConfig with voice and language.- Parameters:
voice- The voice to use.language- The language of the speech.
-
SpeechConfig
Creates an instance of aSpeechConfigrecord class.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
voice
Returns the value of thevoicerecord component.- Returns:
- the value of the
voicerecord component
-
language
Returns the value of thelanguagerecord component.- Returns:
- the value of the
languagerecord component
-
speaker
Returns the value of thespeakerrecord component.- Returns:
- the value of the
speakerrecord component
-