delete method

void delete()

Release the resources acquired by Picovoice (via Porcupine and Rhino engines).

Implementation

void delete() {
  if (_porcupine != null) {
    _porcupine!.delete();
    _porcupine = null;
  }
  if (_rhino != null) {
    _rhino!.delete();
    _rhino = null;
  }
}