共用方式為


SpeechRecognitionResult class

定義語音辨識的結果。

Extends

建構函式

SpeechRecognitionResult(string, ResultReason, string, number, number, string, string, string, string, string, PropertyCollection)

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

屬性

duration

100 奈秒遞增的辨識語音持續時間。

errorDetails

如果辨識失敗,請提供所發生錯誤的詳細數據。

language

偵測到主要語言。

languageDetectionConfidence

主要語言偵測信賴度 (未知、低、中、高)。

offset

以 100 奈秒增量為單位的辨識語音位移。

properties

結果中公開的屬性集。

reason

指定結果的狀態。

resultId

指定結果標識碼。

speakerId

交談轉譯/標識符案例中的說話者標識符

text

在結果中呈現已辨識的文字。

建構函式詳細資料

SpeechRecognitionResult(string, ResultReason, string, number, number, string, string, string, string, string, PropertyCollection)

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

new SpeechRecognitionResult(resultId?: string, reason?: ResultReason, text?: string, duration?: number, offset?: number, language?: string, languageDetectionConfidence?: string, speakerId?: string, errorDetails?: string, json?: string, properties?: PropertyCollection)

參數

resultId

string

結果標識碼。

reason
ResultReason

原因。

text

string

已辨識的文字。

duration

number

持續時間。

offset

number

數據流中的位移。

language

string

如果提供,則偵測到主要語言。

languageDetectionConfidence

string

如果提供,主要語言信賴度 (“未知”、“低”、“中”、“高”...)。

speakerId

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

結果中公開的屬性集。

PropertyCollection properties

屬性值

結果中公開的屬性集。

reason

指定結果的狀態。

ResultReason reason

屬性值

指定結果的狀態。

resultId

指定結果標識碼。

string resultId

屬性值

string

指定結果標識碼。

speakerId

交談轉譯/標識符案例中的說話者標識符

string speakerId

屬性值

string

指定結果中的說話者標識碼

text

在結果中呈現已辨識的文字。

string text

屬性值

string

在結果中呈現已辨識的文字。