CancellationDetails class
包含為何取消結果的詳細資訊。
- Extends
屬性
Error |
錯誤碼,以防辨識失敗。 已在1.1.0版中新增。 |
error |
如果辨識失敗,請提供所發生錯誤的詳細數據。 |
reason | 取消辨識的原因。 |
方法
from |
為取消的 RecognitionResult 建立 CancellationDetails 對象的實例。 |
屬性詳細資料
ErrorCode
errorDetails
如果辨識失敗,請提供所發生錯誤的詳細數據。
string errorDetails
屬性值
string
String,表示錯誤詳細數據。
reason
方法詳細資料
fromResult(RecognitionResult | SpeechSynthesisResult)
為取消的 RecognitionResult 建立 CancellationDetails 對象的實例。
static function fromResult(result: RecognitionResult | SpeechSynthesisResult): CancellationDetails
參數
- result
已取消的結果。
傳回
正在建立的取消詳細數據物件。