你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
SpeechSynthesisCancellationDetails Class
Contains detailed information about why a result was canceled.
Constructor
SpeechSynthesisCancellationDetails(result: SpeechSynthesisResult | None = None, stream: AudioDataStream | None = None)
Parameters
Name | Description |
---|---|
result
|
Default value: None
|
stream
|
Default value: None
|
Attributes
error_code
The error code in case of an unsuccessful speech synthesis (Reason is set to Error). If Reason is not Error, ErrorCode is set to NoError.
error_details
The error message in case of an unsuccessful speech synthesis (Reason is set to Error)
reason
The reason the result was canceled.