KeywordRecognitionModel class

表示使用者說出關鍵字以起始進一步語音辨識的關鍵字辨識模型。

方法

close()

處置相關聯的資源。

fromFile(string)

使用指定的檔案名建立關鍵字辨識模型。

fromStream(File)

使用指定的檔案名建立關鍵字辨識模型。

方法詳細資料

close()

處置相關聯的資源。

function close()

fromFile(string)

使用指定的檔案名建立關鍵字辨識模型。

static function fromFile(fileName: string): KeywordRecognitionModel

參數

fileName

string

字串,表示關鍵字辨識模型的檔案名。 請注意,檔案可以指向 zip 檔案,在此情況下,系統會從 zip 擷取模型。

傳回

要建立的關鍵字辨識模型。

fromStream(File)

使用指定的檔案名建立關鍵字辨識模型。

static function fromStream(file: File): KeywordRecognitionModel

參數

file

File

代表關鍵字辨識模型的檔案。 請注意,檔案可以指向 zip 檔案,在此情況下,系統會從 zip 擷取模型。

傳回

要建立的關鍵字辨識模型。