KeywordRecognitionModel class

Represents a keyword recognition model for recognizing when the user says a keyword to initiate further speech recognition.

Methods

close()

Dispose of associated resources.

fromFile(string)

Creates a keyword recognition model using the specified filename.

fromStream(File)

Creates a keyword recognition model using the specified filename.

Method Details

close()

Dispose of associated resources.

function close()

fromFile(string)

Creates a keyword recognition model using the specified filename.

static function fromFile(fileName: string)

Parameters

fileName
string

A string that represents file name for the keyword recognition model. Note, the file can point to a zip file in which case the model will be extracted from the zip.

Returns

fromStream(File)

Creates a keyword recognition model using the specified filename.

static function fromStream(file: File)

Parameters

file
File

A File that represents file for the keyword recognition model. Note, the file can point to a zip file in which case the model will be extracted from the zip.

Returns