public class WebSocketManager extends Object
WebSocket
connection, stream audio to the API and close the connection
once the audio was transmitted.Constructor and Description |
---|
WebSocketManager(String url,
okhttp3.OkHttpClient client,
okhttp3.Headers defaultHeaders,
String token)
Instantiates a new web socket manager.
|
Modifier and Type | Method and Description |
---|---|
void |
recognize(InputStream stream,
RecognizeOptions options,
RecognizeCallback delegate)
Recognize.
|
public void recognize(InputStream stream, RecognizeOptions options, RecognizeCallback delegate)
stream
- the streamoptions
- the optionsdelegate
- the delegateCopyright © 2015–2016 IBM Watson. All rights reserved.