public class WebSocketManager
extends java.lang.Object
WebSocket connection, stream audio to the API and close the connection
once the audio was transmitted.| Constructor and Description |
|---|
WebSocketManager(java.lang.String url,
okhttp3.OkHttpClient client,
okhttp3.Headers defaultHeaders,
java.lang.String token)
Instantiates a new web socket manager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
recognize(java.io.InputStream stream,
RecognizeOptions options,
RecognizeCallback delegate)
Recognize.
|
public WebSocketManager(java.lang.String url,
okhttp3.OkHttpClient client,
okhttp3.Headers defaultHeaders,
java.lang.String token)
url - the urlclient - the clientdefaultHeaders - the default headerstoken - the tokenpublic void recognize(java.io.InputStream stream,
RecognizeOptions options,
RecognizeCallback delegate)
stream - the streamoptions - the optionsdelegate - the delegate