public class WebSocketSpeechToTextClient extends Object
SpeechToText
to recognize audioModifier and Type | Class and Description |
---|---|
class |
WebSocketSpeechToTextClient.WebSocketListener
Listener that call the
RecognizeDelegate when a message from the WebSocket connection
arrives |
Constructor and Description |
---|
WebSocketSpeechToTextClient(String webSocketUrl,
String token)
Instantiates a new web socket speech to text client.
|
Modifier and Type | Method and Description |
---|---|
void |
recognize(InputStream stream,
RecognizeOptions options,
RecognizeDelegate delegate)
Creates a WebSocket connection to the Speech To Text service and sends the audio bytes from the
input stream for recognition
|
public void recognize(InputStream stream, RecognizeOptions options, RecognizeDelegate delegate)
stream
- the streamoptions
- the optionsdelegate
- the delegateCopyright © 2015–2016. All rights reserved.