BackendTextToSpeechRequest constructor

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

Creates a backend synthesis request.

Implementation

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