public static interface SpokestackCloudClient.Listener
Modifier and Type | Method and Description |
---|---|
void |
onError(Throwable e)
called when a speech detection error occurred.
|
void |
onSpeech(String transcript,
float confidence,
boolean isFinal)
called when a speech transcription is received.
|
void onSpeech(String transcript, float confidence, boolean isFinal)
transcript
- the speech transcriptconfidence
- the recognizer's confidence in transcript
isFinal
- flag representing whether the result is finalvoid onError(Throwable e)
e
- the speech errorCopyright © 2020. All rights reserved.