Package com.vonage.client.voice.ncco
Class SpeechSettings
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.voice.ncco.SpeechSettings
- All Implemented Interfaces:
Jsonable
ASR (Automatic Speech Recognition) settings for Input Actions that will be added to a NCCO object.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder for customising SpeechSettings parameters.static enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SpeechSettings.Builderbuilder()Entry point for constructing an instance of this class.getUuid()voidsetContext(Collection<String> context) Deprecated.voidsetEndOnSilence(Integer endOnSilence) Deprecated.voidsetLanguage(SpeechSettings.Language language) Deprecated.voidsetMaxDuration(Integer maxDuration) Deprecated.voidsetStartTimeout(Integer startTimeout) Deprecated.voidsetUuid(Collection<String> uuid) Deprecated.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
-
SpeechSettings
Deprecated.This will be made private in a future release. Usebuilder().
-
-
Method Details
-
getUuid
-
getLanguage
-
getContext
-
getEndOnSilence
-
getStartTimeout
-
getMaxDuration
-
getSensitivity
-
getSaveAudio
-
setLanguage
Deprecated.UseSpeechSettings.Builder.language(Language). This will be removed in a future release.- Parameters:
language- expected language of the user's speech. If empty, default value is en-US.
-
setUuid
Deprecated.UseSpeechSettings.Builder.uuid(String). This will be removed in a future release.- Parameters:
uuid- The unique ID of the Call leg for the user to capture the speech of, wrapped in a collection.
-
setContext
Deprecated.UseSpeechSettings.Builder.context(Collection). This will be removed in a future release.List of hints to improve recognition quality if certain words are expected from the user.- Parameters:
context- list of hints
-
setEndOnSilence
Deprecated.UseSpeechSettings.Builder.endOnSilence(double). This will be removed in a future release.Controls how long the system will wait after user stops speaking to decide the input is completed. Timeout range 1-10 seconds. If empty,Default value is 2- Parameters:
endOnSilence- wait time for voice input to complete
-
setStartTimeout
Deprecated.UseSpeechSettings.Builder.startTimeout(int). This will be removed in a future release.Controls how long the system will wait for the user to start speaking. Timeout range 1-10 seconds.- Parameters:
startTimeout- timeout for voice input initiation
-
setMaxDuration
Deprecated.UseSpeechSettings.Builder.maxDuration(int). This will be removed in a future release.Controls maximum speech duration from the moment user starts speaking. Default value is 60- Parameters:
maxDuration- speech duration starting from user's initiation of speech
-
builder
Entry point for constructing an instance of this class.- Returns:
- A new Builder.
- Since:
- 8.2.0
-