Struct porcupine_sys::Object[][src]

pub struct Object { /* fields omitted */ }

Methods

impl Object
[src]

Creates a new Porcupine object.

Creates a new Porcupine object that is capable of detecting multiple keywords.

Delete the Porcupine object.

Detect keyword within the provided audio data. The data must be 16-bit linearly-encoded and single-channel with sample rate equal to sample_rate().

Detect one of the keywords within the provided audio data. The data must be 16-bit linearly-encoded and single-channel with sample rate equal to sample_rate(). It returns the index of the detected keyword if successful.

Trait Implementations

impl Send for Object
[src]

Auto Trait Implementations

impl !Sync for Object