watson_developer_cloud.websocket.recognize_abstract_callback module

class RecognizeCallback[source]

Bases: object

on_transcription(transcript)[source]

Called after the service returns the final result for the transcription.

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_inactivity_timeout(error)[source]

Called when there is an inactivity timeout.

on_listening()[source]

Called when the service is listening for audio.

on_hypothesis(hypothesis)[source]

Called when an interim result is received.

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