GoogleTTSRequest class

Google TTS request configuration

This class represents a request for Google's native text-to-speech API which uses chat-like interactions with audio output modality.

Constructors

GoogleTTSRequest.new({required String text, GoogleVoiceConfig? voiceConfig, GoogleMultiSpeakerVoiceConfig? multiSpeakerVoiceConfig, String? model, Map<String, dynamic>? generationConfig})
const
GoogleTTSRequest.multiSpeaker({required String text, required List<GoogleSpeakerVoiceConfig> speakers, String? model, Map<String, dynamic>? generationConfig})
Create a multi-speaker TTS request
factory
GoogleTTSRequest.singleSpeaker({required String text, required String voiceName, String? model, Map<String, dynamic>? generationConfig})
Create a single-speaker TTS request
factory

Properties

generationConfig Map<String, dynamic>?
Additional generation configuration
final
hashCode int
The hash code for this object.
no setterinherited
model String?
Model to use (e.g., 'gemini-2.5-flash-preview-tts')
final
multiSpeakerVoiceConfig GoogleMultiSpeakerVoiceConfig?
Multi-speaker voice configuration
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
Text content to convert to speech
final
voiceConfig GoogleVoiceConfig?
Voice configuration for single speaker
final

Methods

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

Operators

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