clearExternalVoices method

Future<void> clearExternalVoices()

Drops the clips queued with enqueueVoice that have not started yet, e.g. when a trip ends. A clip that is already playing finishes.

Implementation

Future<void> clearExternalVoices() async {
  try {
    await _methodChannel.invokeMethod<void>(MethodChannelEvent.clearExternalVoices);
  } on PlatformException catch (e) {
    log('clearExternalVoices error: ${e.message}');
  } on MissingPluginException catch (e) {
    log('clearExternalVoices error: ${e.message}');
  }
}