SpeechSynthesisCancellationDetails Class

Contains detailed information about why a result was canceled.

Inheritance
builtins.object
SpeechSynthesisCancellationDetails

Constructor

SpeechSynthesisCancellationDetails(result: SpeechSynthesisResult = None, stream: AudioDataStream = 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.