watson_developer_cloud.websocket.synthesize_callback module

class SynthesizeCallback[source]

Bases: object

on_connected()[source]

Called when a Websocket connection was made

on_error(error)[source]

Called when there is an error in the Websocket connection.

on_content_type(content_type)[source]

Called when the service responds with the format of the audio response

on_timing_information(timing_information)[source]

Called when the service returns timing information

on_audio_stream(audio_stream)[source]

Called when the service sends the synthesized audio as a binary stream of data in the indicated format.

on_data(data)[source]

Called when the service returns results. The data is returned unparsed.

on_close()[source]

Called when the Websocket connection is closed