SpeechRecognitionEventArgs class

定義語音辨識/辨識事件的內容。

Extends

建構函式

SpeechRecognitionEventArgs(SpeechRecognitionResult, number, string)

建立並初始化這個類別的實例。

屬性

offset

表示訊息位移

result

指定辨識結果。

sessionId

表示會話識別碼。

建構函式詳細資料

SpeechRecognitionEventArgs(SpeechRecognitionResult, number, string)

建立並初始化這個類別的實例。

new SpeechRecognitionEventArgs(result: SpeechRecognitionResult, offset?: number, sessionId?: string)

參數

result
SpeechRecognitionResult

語音辨識結果。

offset

number

位移。

sessionId

string

會話識別碼。

屬性詳細資料

offset

表示訊息位移

number offset

屬性值

number

result

指定辨識結果。

SpeechRecognitionResult result

屬性值

辨識結果。

sessionId

表示會話識別碼。

string sessionId

屬性值

string

表示會話識別碼。