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 classGather.BuilderCreate a new<Gather>elementstatic classGather.Inputstatic classGather.Languagestatic classGather.SpeechModel
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URIgetAction()Action URLStringgetFinishOnKey()Finish gather on keyStringgetHints()Speech recognition hintsList<Gather.Input>getInputs()Input type Twilio should acceptGather.LanguagegetLanguage()Language to useIntegergetMaxSpeechTime()Max allowed time for speech inputHttpMethodgetMethod()Action URL methodIntegergetNumDigits()Number of digits to collectURIgetPartialResultCallback()Partial result callback URLHttpMethodgetPartialResultCallbackMethod()Partial result callback URL methodGather.SpeechModelgetSpeechModel()Specify the model that is best suited for your use caseStringgetSpeechTimeout()Time to wait to gather speech input and it should be either auto or a positive integer.IntegergetTimeout()Time to wait to gather inputBooleanisActionOnEmptyResult()Force webhook to the action URL event if there is no inputBooleanisBargeIn()Stop playing media upon speechBooleanisDebug()Allow debug for gatherBooleanisEnhanced()Use enhanced speech modelBooleanisProfanityFilter()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 Gather.SpeechModel 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
-
-