GoogleTTS class
Google TTS implementation
This class implements Google's native text-to-speech capabilities using the Gemini API with audio output modality.
- Implemented types
Constructors
- GoogleTTS.new(GoogleClient _client, GoogleConfig _config)
Properties
- defaultTTSModel → String
-
Get the default TTS model
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supportsTTS → bool
-
Check if the current model supports TTS
no setter
Methods
-
createMultiSpeakerRequest(
{required String text, required Map< String, String> speakerVoices, String? model}) → GoogleTTSRequest - Create a multi-speaker TTS request
-
createSimpleRequest(
{required String text, String voiceName = 'Kore', String? model}) → GoogleTTSRequest - Create a simple TTS request
-
generateSpeech(
GoogleTTSRequest request) → Future< GoogleTTSResponse> -
Generate speech from text using Google's native TTS
override
-
generateSpeechStream(
GoogleTTSRequest request) → Stream< GoogleTTSStreamEvent> -
Generate speech with streaming output
override
-
getAvailableVoices(
) → Future< List< GoogleVoiceInfo> > -
Get available voices for Google TTS
override
-
getSupportedLanguages(
) → Future< List< String> > -
Get supported languages for Google TTS
override
-
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