cancelTextToSpeechBackend method

void cancelTextToSpeechBackend()

Cancels backend-native synthesis started by TextToSpeechEngine.

Implementation

void cancelTextToSpeechBackend() {
  final candidate = backend;
  if (candidate is BackendTextToSpeech) {
    (candidate as BackendTextToSpeech).cancelTextToSpeech();
  }
}