SpeechSynthesisCancellationDetails Class
Contains detailed information about why a result was canceled.
- Inheritance
-
builtins.objectSpeechSynthesisCancellationDetails
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.
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Python