SpeechConfig class

Speech configuration class for setting the voice of the model.

Constructors

SpeechConfig({String? voiceName, String? languageCode})
Creates a SpeechConfig instance for a single speaker.
SpeechConfig.fromLiveVoice(GeminiLiveVoice voice, {String? languageCode})
Creates a SpeechConfig instance from a GeminiLiveVoice enum.
SpeechConfig.fromVoice(Object voice, {String? languageCode})
Creates a SpeechConfig instance from a voice name, custom voice ID, or GeminiLiveVoice.
factory
SpeechConfig.multiSpeaker({required MultiSpeakerVoiceConfig? multiSpeakerVoiceConfig, String? languageCode})
Creates a SpeechConfig instance for multiple speakers.

Properties

hashCode → int
The hash code for this object.
no setterinherited
languageCode → String?
The language code (BCP-47) of the speech output.
final
liveVoice → GeminiLiveVoice?
Returns the corresponding GeminiLiveVoice enum if matched.
no setter
multiSpeakerVoiceConfig → MultiSpeakerVoiceConfig?
The configuration for multi-speaker setup.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
voiceName → String?
The name of the voice to be used for the speech output.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited