watson_developer_cloud.websocket.recognize_abstract_callback module

class RecognizeCallback[source]

Bases: object

on_transcription(transcript)[source]

Called when an interim result is received

on_connected()[source]

Called when a WebSocket connection was made

on_error(error)[source]

Called when there is an error in the Web Socket 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_transcription_complete()[source]

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

on_hypothesis(hypothesis)[source]

Called when the service returns the final hypothesis

on_data(data)[source]

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