TTSConfiguration constructor

TTSConfiguration({
  1. required bool speakOnShow,
  2. double? speechRate,
  3. double? pitch,
  4. String? language,
})

Constructor for TTSConfiguration.

  • speakOnShow: Whether the message should be spoken aloud (TTS).
  • speechRate: The rate at which the TTS system speaks (optional).
  • pitch: The pitch of the TTS voice (optional).
  • language: The language of the TTS voice (optional).

Implementation

TTSConfiguration({
  required this.speakOnShow,
  this.speechRate,
  this.pitch,
  this.language,
});