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.