Package com.vonage.client.voice.ncco
Class InputAction.Builder
java.lang.Object
com.vonage.client.voice.ncco.InputAction.Builder
- Enclosing class:
- InputAction
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
dtmf
(DtmfSettings dtmf) eventMethod
(EventMethod eventMethod) eventUrl
(Collection<String> eventUrl) speech
(SpeechSettings speech) type
(Collection<String> type)
-
Method Details
-
dtmf
- Parameters:
dtmf
- DTMF settings object to enable DTMF input.- Returns:
- This builder to keep building the input action.
- Since:
- 6.0.0
-
eventUrl
- Parameters:
eventUrl
- Vonage sends the digits pressed by the callee to this URL after timeOut pause in activity or when # is pressed.- Returns:
- This builder to keep building the input action.
-
eventUrl
- Parameters:
eventUrl
- Vonage sends the digits pressed by the callee to this URL after timeOut pause in activity or when # is pressed.- Returns:
- This builder to keep building the input action.
-
eventMethod
- Parameters:
eventMethod
- The HTTP method used to send event information to event_url The default value is POST.- Returns:
- This builder to keep building the input action.
-
speech
- Parameters:
speech
- Automatic speech recognition settings object to enable speech input. Required if dtmf is not provided.- Returns:
- This builder to keep building the input action.
- Since:
- 6.0.0
-
type
- Parameters:
type
- Acceptable input type, can be set as [ "dtmf" ] for DTMF input only, [ "speech" ] for ASR only, or [ "dtmf", "speech" ] for both.- Returns:
- This builder to keep building the input action.
-
build
- Returns:
- A new
InputAction
object from the stored builder options.
-