YSKPhraseSpotterModel class

Instance methods

-initWithConfigDirectory:

Creates an object of the YSKPhraseSpotterModel class.

-load

Uploads the voice activation model to memory.

-unload

Loads the voice activation model from memory.

Method descriptions

-initWithConfigDirectory:

- (id) initWithConfigDirectory:(NSString *) configDirectory

Creates an object of the YSKPhraseSpotterModel class.

Before launching voice activation, you need to pass the data for audio analysis and an object of the PhraseSpotterListener class that will process voice activation events. All callback methods will be called in the initialization stream in which YSKPhraseSpotter was initialized.
Note.

Creating the model may take some time. This is a blocking method.

Parameters:
configDirectory

The path to the directory with the voice activation model files.

-load

- (NSError *) load

Uploads the voice activation model to memory.

Returns:

NSError Result of execution.

-unload

- (NSError *) unload

Loads the voice activation model from memory.

Returns:

NSError Result of execution.