RecognitionResult class
定義語音辨識的結果。
建構函式
Recognition |
建立並初始化這個類別的實例。 |
屬性
duration | 100 奈秒遞增的辨識語音持續時間。 |
error |
如果辨識失敗,請提供所發生錯誤的詳細數據。 |
language | 偵測到主要語言。 |
language |
主要語言偵測信賴度 (未知、低、中、高)。 |
offset | 以 100 奈秒增量為單位的辨識語音位移。 |
properties | 結果中公開的屬性集。 |
reason | 指定結果的狀態。 |
result |
指定結果標識碼。 |
text | 在結果中呈現已辨識的文字。 |
建構函式詳細資料
RecognitionResult(string, ResultReason, string, number, number, string, string, string, string, PropertyCollection)
建立並初始化這個類別的實例。
new RecognitionResult(resultId?: string, reason?: ResultReason, text?: string, duration?: number, offset?: number, language?: string, languageDetectionConfidence?: string, errorDetails?: string, json?: string, properties?: PropertyCollection)
參數
- resultId
-
string
結果標識碼。
- reason
- ResultReason
原因。
- text
-
string
已辨識的文字。
- duration
-
number
持續時間。
- offset
-
number
數據流中的位移。
- language
-
string
如果提供,則偵測到主要語言。
- languageDetectionConfidence
-
string
如果提供,主要語言信賴度 (“未知”、“低”、“中”、“高”...)。
- errorDetails
-
string
如果提供錯誤詳細資料, 則為 。
- json
-
string
如果提供,則為其他 Json。
- properties
- PropertyCollection
如果提供其他屬性,則為 。
屬性詳細資料
duration
100 奈秒遞增的辨識語音持續時間。
number duration
屬性值
number
100 奈秒遞增的辨識語音持續時間。
errorDetails
如果辨識失敗,請提供所發生錯誤的詳細數據。
string errorDetails
屬性值
string
錯誤的簡短描述。
language
偵測到主要語言。
string language
屬性值
string
偵測到的語言。
languageDetectionConfidence
主要語言偵測信賴度 (未知、低、中、高)。
string languageDetectionConfidence
屬性值
string
偵測信賴強度。
offset
以 100 奈秒增量為單位的辨識語音位移。
number offset
屬性值
number
以 100 奈秒增量為單位的辨識語音位移。
properties
reason
resultId
指定結果標識碼。
string resultId
屬性值
string
指定結果標識碼。
text
在結果中呈現已辨識的文字。
string text
屬性值
string
在結果中呈現已辨識的文字。