public interface RecognizeCallback
WebSocket recognition by the SpeechToText service.| 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. | 
void onTranscription(SpeechResults speechResults)
SpeechResults was received.speechResults - the speech resultsvoid onConnected()
void onError(Exception e)
e - the exceptionvoid onDisconnected()
Copyright © 2015–2016 IBM Watson. All rights reserved.