PhraseSpotterModel class

ru.yandex.speechkit

public  class  PhraseSpotterModel 

Constructors

PhraseSpotterModel(String configPath)

Creates an object of the PhraseSpotterModel class.

Methods

Errorload()

Uploads the voice activation model to memory.

Errorunload()

Loads the voice activation model from memory.

Constructor descriptions

PhraseSpotterModel

public PhraseSpotterModel (String configPath)

Creates an object of the PhraseSpotterModel class.

The constructor creates the model based on source files. To get the model files, send email to voice@support.yandex.ru.
Note.

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

Parameters:
configPath

The path to the directory with the voice activation model files. The files can be placed in the "assets" directory and on an SD card.

Method descriptions

load

public Error load ()

Uploads the voice activation model to memory.

Returns:

An object of the Error class with results of execution.

unload

public Error unload ()

Loads the voice activation model from memory.

Returns:

An object of the Error class with results of execution.