reset method

Future<void> reset()

Resets the internal state of the engine. It should be called before the engine can be used to infer intent from a new stream of audio.

Throws a RhinoException if reset fails

Implementation

Future<void> reset() async {
  if (_handle == null) {
    throw RhinoInvalidStateException(
        "Unable to reset Rhino - resources have already been released");
  }
  try {
    await _channel.invokeMethod(_NativeFunctions.RESET.name, {'handle': _handle});
  } on PlatformException catch (error) {
    throw rhinoStatusToException(error.code, error.message);
  }
}