stop method

Future<void> stop()

Stop playback and any in-flight synthesis.

Deprecated: use the SpeechHandle returned by speak. Interrupts the most recently created handle when one is still active.

Implementation

Future<void> stop() async {
  await _playback.stop();
  if (DartBridge.isInitialized) {
    DartBridgeTTS.shared.stopLifecycleProto();
  }
}