BackendTextToSpeechRequest constructor

const BackendTextToSpeechRequest({
  1. required String text,
  2. String? language,
  3. String? speakerAudioPath,
  4. Uint8List? speakerAudioBytes,
  5. String? voice,
  6. int maxFrames = 512,
  7. int promptBatchSize = 512,
  8. int topK = 40,
  9. double topP = 0.95,
  10. double minP = 0.0,
  11. double temperature = 0.8,
  12. int seed = 0xffffffff,
})

Creates a backend synthesis request.

Implementation

const BackendTextToSpeechRequest({
  required this.text,
  this.language,
  this.speakerAudioPath,
  this.speakerAudioBytes,
  this.voice,
  this.maxFrames = 512,
  this.promptBatchSize = 512,
  this.topK = 40,
  this.topP = 0.95,
  this.minP = 0.0,
  this.temperature = 0.8,
  this.seed = 0xffffffff,
});