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): KeywordRecognitionModel

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

The keyword recognition model being created.

fromStream(File)

Creates a keyword recognition model using the specified filename.

static function fromStream(file: File): KeywordRecognitionModel

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

The keyword recognition model being created.