reset method

Future<void> reset()

Resets the internal state of PicovoiceManager. It can be called to return to the wake word detection state before an inference has completed.

Implementation

Future<void> reset() async {
  if (_picovoice == null) {
    throw PicovoiceInvalidStateException(
        "Unable to reset - resources have been released.");
  }

  await _picovoice?.reset();
}