SpeechSynthesisResult class
定義語音合成的結果。
- Extends
建構函式
Speech |
建立並初始化這個類別的實例。 |
屬性
audio |
合成的音訊數據 |
audio |
合成音訊的時間持續時間,以刻度為單位(100 奈秒)。 |
error |
如果合成失敗,請提供所發生錯誤的詳細數據。 |
properties | 結果中公開的屬性集。 |
reason | 指定結果的狀態。 |
result |
指定結果標識碼。 |
建構函式詳細資料
SpeechSynthesisResult(string, ResultReason, ArrayBuffer, string, PropertyCollection, number)
建立並初始化這個類別的實例。
new SpeechSynthesisResult(resultId?: string, reason?: ResultReason, audioData?: ArrayBuffer, errorDetails?: string, properties?: PropertyCollection, audioDuration?: number)
參數
- resultId
-
string
結果標識碼。
- reason
- ResultReason
原因。
- audioData
-
ArrayBuffer
合成的音訊二進位檔。
- errorDetails
-
string
如果提供錯誤詳細資料, 則為 。
- properties
- PropertyCollection
如果提供其他屬性,則為 。
- audioDuration
-
number
音訊持續時間。
屬性詳細資料
audioData
合成的音訊數據
ArrayBuffer audioData
屬性值
ArrayBuffer
合成的音訊數據。
audioDuration
合成音訊的時間持續時間,以刻度為單位(100 奈秒)。
number audioDuration
屬性值
number
合成音訊的時間持續時間。
errorDetails
如果合成失敗,請提供所發生錯誤的詳細數據。
string errorDetails
屬性值
string
錯誤的簡短描述。
properties
reason
resultId
指定結果標識碼。
string resultId
屬性值
string
指定結果標識碼。