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)
RecognizeCallbackSpeechResults was received.onTranscription in interface RecognizeCallbackspeechResults - the speech resultspublic void onConnected()
RecognizeCallbackonConnected in interface RecognizeCallbackpublic void onError(Exception e)
RecognizeCallbackonError in interface RecognizeCallbacke - the exceptionpublic void onDisconnected()
RecognizeCallbackonDisconnected in interface RecognizeCallbackCopyright © 2015–2016. All rights reserved.