public final class SpeechToTextWebSocketListener
extends okhttp3.WebSocketListener
WebSocket events. SpeechToText| Constructor and Description |
|---|
SpeechToTextWebSocketListener(RecognizeOptions options,
RecognizeCallback callback)
Instantiates a new speech to text web socket listener.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onClosing(okhttp3.WebSocket webSocket,
int code,
java.lang.String reason) |
void |
onFailure(okhttp3.WebSocket webSocket,
java.lang.Throwable t,
okhttp3.Response response) |
void |
onMessage(okhttp3.WebSocket webSocket,
java.lang.String message) |
void |
onOpen(okhttp3.WebSocket socket,
okhttp3.Response response) |
public SpeechToTextWebSocketListener(RecognizeOptions options, RecognizeCallback callback)
options - the recognize optionscallback - the callbackpublic void onClosing(okhttp3.WebSocket webSocket,
int code,
java.lang.String reason)
onClosing in class okhttp3.WebSocketListenerpublic void onFailure(okhttp3.WebSocket webSocket,
java.lang.Throwable t,
okhttp3.Response response)
onFailure in class okhttp3.WebSocketListenerpublic void onMessage(okhttp3.WebSocket webSocket,
java.lang.String message)
onMessage in class okhttp3.WebSocketListenerpublic void onOpen(okhttp3.WebSocket socket,
okhttp3.Response response)
onOpen in class okhttp3.WebSocketListener