NAME
Twilio::TwiML::Voice::Gather - The Gather element of TwiML
SYNOPSIS
my $element = Twilio::TwiML::Voice::Gather->new(\%attributes);
DESCRIPTION
See Twilio::TwiML::TwiML for the methods every element has.
METHODS
new
my $element = Twilio::TwiML::Voice::Gather->new(\%attributes);
attribute_table
Used by Twilio::TwiML::TwiML.
pause
my $child = $element->pause(\%attributes);
Add Pause child. Returns a Twilio::TwiML::Voice::Pause.
play
my $child = $element->play($url, \%attributes);
Add Play child. Returns a Twilio::TwiML::Voice::Play.
say
my $child = $element->say($message, \%attributes);
Add Say child. Returns a Twilio::TwiML::Voice::Say.
ATTRIBUTES
Each name works in \%attributes, and as a set_ method that returns the element.
action-
Action URL
action_on_empty_result-
Force webhook to the action URL event if there is no input True or false.
barge_in-
Stop playing media upon speech True or false.
debug-
Allow debug for gather True or false.
enhanced-
Use enhanced speech model True or false.
finish_on_key-
Finish gather on key
hints-
Speech recognition hints
input-
Input type Twilio should accept An array reference.
language-
Language to use
max_speech_time-
Max allowed time for speech input
method-
Action URL method
num_digits-
Number of digits to collect
partial_result_callback-
Partial result callback URL
partial_result_callback_method-
Partial result callback URL method
profanity_filter-
Profanity Filter on speech True or false.
speech_model-
Specify the model that is best suited for your use case
speech_timeout-
Time to wait to gather speech input and it should be either auto or a positive integer.
timeout-
Time to wait to gather input
set_action
set_action_on_empty_result
set_barge_in
set_debug
set_enhanced
set_finish_on_key
set_hints
set_input
set_language
set_max_speech_time
set_method
set_num_digits
set_partial_result_callback
set_partial_result_callback_method
set_profanity_filter
set_speech_model
set_speech_timeout
set_timeout
Set the attribute of the same name.
LICENSE
Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.