SpeechSynthesisResult Class

Inheritance
builtins.object
SpeechSynthesisResult

Constructor

SpeechSynthesisResult(*args, **kwargs)

Methods

get_audio_duration_milliseconds
get_audio_length

get_audio_duration_milliseconds

get_audio_duration_milliseconds()

get_audio_length

get_audio_length()

Attributes

audio_data

The synthesized TTS result as a bytes object

audio_duration

cancellation_details

The reason why speech synthesis was cancelled.

Returns None if there was no cancellation.

properties

reason

The speech synthesis reason

result_id