GoogleTTSRequest constructor

const GoogleTTSRequest({
  1. required String text,
  2. GoogleVoiceConfig? voiceConfig,
  3. GoogleMultiSpeakerVoiceConfig? multiSpeakerVoiceConfig,
  4. String? model,
  5. 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',
      );