GoogleTTSRequest constructor
const
GoogleTTSRequest({
- required String text,
- GoogleVoiceConfig? voiceConfig,
- GoogleMultiSpeakerVoiceConfig? multiSpeakerVoiceConfig,
- String? model,
- Map<
String, dynamic> ? generationConfig,
Implementation
const GoogleTTSRequest({
required this.text,
this.voiceConfig,
this.multiSpeakerVoiceConfig,
this.model,
this.generationConfig,
}) : assert(
voiceConfig != null || multiSpeakerVoiceConfig != null,
'Either voiceConfig or multiSpeakerVoiceConfig must be provided',
);