synthesizeTextToSpeech abstract method

Future<BackendTextToSpeechResult> synthesizeTextToSpeech(
  1. int contextHandle,
  2. int mmContextHandle,
  3. BackendTextToSpeechRequest request, {
  4. void onProgress(
    1. BackendTextToSpeechProgress progress
    )?,
})

Synthesizes one complete utterance.

Current implementations return PCM only after generation has completed. onProgress does not imply incremental audio output.

Implementation

Future<BackendTextToSpeechResult> synthesizeTextToSpeech(
  int contextHandle,
  int mmContextHandle,
  BackendTextToSpeechRequest request, {
  void Function(BackendTextToSpeechProgress progress)? onProgress,
});