Package com.vonage.client.voice
Class SpeechResults
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.voice.SpeechResults
- All Implemented Interfaces:
Jsonable
Represents the speech recognition results in
EventWebhook.getSpeech().- Since:
- 8.2.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetError()Error message.Speech recording URL.The recognised text objects.Indicates if the input ended when user stopped speaking, by max duration timeout or if the user didn't say anything.Methods inherited from class com.vonage.client.JsonableBaseObject
createJsonObjectMapper, equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vonage.client.Jsonable
toJson, updateFromJson
-
Constructor Details
-
SpeechResults
public SpeechResults()
-
-
Method Details
-
getRecordingUrl
Speech recording URL. Included if thesaveAudioflag is set totruein the input action. Requires JWT authorization for downloading see Download a Recording documentation for details.- Returns:
- The recording URL, or
nullif absent. - Since:
- 8.2.0
-
getError
Error message.- Returns:
- The error message, or
nullif absent / not applicable.
-
getTimeoutReason
Indicates if the input ended when user stopped speaking, by max duration timeout or if the user didn't say anything.- Returns:
- Reason for the timeout as an enum.
-
getResults
The recognised text objects.- Returns:
- The list of transcript texts, or
nullif there are none.
-