Package com.twilio.twiml.voice
Class Gather
- java.lang.Object
-
- com.twilio.twiml.TwiML
-
- com.twilio.twiml.voice.Gather
-
public class Gather extends TwiML
TwiML wrapper for<Gather>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Gather.Builder
Create a new<Gather>
elementstatic class
Gather.Input
static class
Gather.Language
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URI
getAction()
Action URLString
getFinishOnKey()
Finish gather on keyString
getHints()
Speech recognition hintsList<Gather.Input>
getInputs()
Input type Twilio should acceptGather.Language
getLanguage()
Language to useInteger
getMaxSpeechTime()
Max allowed time for speech inputHttpMethod
getMethod()
Action URL methodInteger
getNumDigits()
Number of digits to collectURI
getPartialResultCallback()
Partial result callback URLHttpMethod
getPartialResultCallbackMethod()
Partial result callback URL methodString
getSpeechModel()
Specify the model that is best suited for your use caseString
getSpeechTimeout()
Time to wait to gather speech input and it should be either auto or a positive integer.Integer
getTimeout()
Time to wait to gather inputBoolean
isActionOnEmptyResult()
Force webhook to the action URL event if there is no inputBoolean
isBargeIn()
Stop playing media upon speechBoolean
isDebug()
Allow debug for gatherBoolean
isEnhanced()
Use enhanced speech modelBoolean
isProfanityFilter()
Profanity Filter on speech-
Methods inherited from class com.twilio.twiml.TwiML
equals, getChildren, getOptions, getTagName, hashCode, toUrl, toXml
-
-
-
-
Method Detail
-
getInputs
public List<Gather.Input> getInputs()
Input type Twilio should accept- Returns:
- Input type Twilio should accept
-
getAction
public URI getAction()
Action URL- Returns:
- Action URL
-
getMethod
public HttpMethod getMethod()
Action URL method- Returns:
- Action URL method
-
getTimeout
public Integer getTimeout()
Time to wait to gather input- Returns:
- Time to wait to gather input
-
getSpeechTimeout
public String getSpeechTimeout()
Time to wait to gather speech input and it should be either auto or a positive integer.- Returns:
- Time to wait to gather speech input and it should be either auto or a positive integer.
-
getMaxSpeechTime
public Integer getMaxSpeechTime()
Max allowed time for speech input- Returns:
- Max allowed time for speech input
-
isProfanityFilter
public Boolean isProfanityFilter()
Profanity Filter on speech- Returns:
- Profanity Filter on speech
-
getFinishOnKey
public String getFinishOnKey()
Finish gather on key- Returns:
- Finish gather on key
-
getNumDigits
public Integer getNumDigits()
Number of digits to collect- Returns:
- Number of digits to collect
-
getPartialResultCallback
public URI getPartialResultCallback()
Partial result callback URL- Returns:
- Partial result callback URL
-
getPartialResultCallbackMethod
public HttpMethod getPartialResultCallbackMethod()
Partial result callback URL method- Returns:
- Partial result callback URL method
-
getLanguage
public Gather.Language getLanguage()
Language to use- Returns:
- Language to use
-
getHints
public String getHints()
Speech recognition hints- Returns:
- Speech recognition hints
-
isBargeIn
public Boolean isBargeIn()
Stop playing media upon speech- Returns:
- Stop playing media upon speech
-
isDebug
public Boolean isDebug()
Allow debug for gather- Returns:
- Allow debug for gather
-
isActionOnEmptyResult
public Boolean isActionOnEmptyResult()
Force webhook to the action URL event if there is no input- Returns:
- Force webhook to the action URL event if there is no input
-
getSpeechModel
public String getSpeechModel()
Specify the model that is best suited for your use case- Returns:
- Specify the model that is best suited for your use case
-
isEnhanced
public Boolean isEnhanced()
Use enhanced speech model- Returns:
- Use enhanced speech model
-
-