public class BaseRecognizeCallback extends Object implements RecognizeCallback
RecognizeCallback
interface.Constructor and Description |
---|
BaseRecognizeCallback() |
Modifier and Type | Method and Description |
---|---|
void |
onConnected()
Called when a WebSocket connection was made.
|
void |
onDisconnected()
Called when a WebSocket connection was closed.
|
void |
onError(Exception e)
Called when there is an error in the Web Socket connection.
|
void |
onTranscription(SpeechResults speechResults)
Called when a
SpeechResults was received. |
public void onTranscription(SpeechResults speechResults)
RecognizeCallback
SpeechResults
was received.onTranscription
in interface RecognizeCallback
speechResults
- the speech resultspublic void onConnected()
RecognizeCallback
onConnected
in interface RecognizeCallback
public void onError(Exception e)
RecognizeCallback
onError
in interface RecognizeCallback
e
- the exceptionpublic void onDisconnected()
RecognizeCallback
onDisconnected
in interface RecognizeCallback
Copyright © 2015–2016 IBM Watson. All rights reserved.