共用方式為


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 擷取模型。

傳回

正在建立的關鍵詞辨識模型。