TtsParams constructor

TtsParams({
  1. required Voice voice,
  2. required String audioFormat,
  3. required dynamic text,
  4. double? rate,
})

Rate is the speed at which the voice will speak.

  • rate default to 1.

Implementation

TtsParams({
  required Voice voice,
  required String audioFormat,
  required text,
  double? rate,
}) : super(
        audioFormat: audioFormat,
        text: text,
        voice: voice,
        rate: rate,
      );