Class Gather


  • public class Gather
    extends TwiML
    TwiML wrapper for <Gather>
    • 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