11import json
22from six import string_types
33
4- from twilio .twiml import TwiML
4+ from twilio .twiml import TwiML , format_language
55
66
77class VoiceResponse (TwiML ):
@@ -111,6 +111,7 @@ def gather(self,
111111 hints = None ,
112112 barge_in = None ,
113113 acknowledge_sound_url = None ,
114+ input = None ,
114115 ** kwargs ):
115116 """
116117 Add a new <Gather> element
@@ -126,6 +127,7 @@ def gather(self,
126127 :param hints: speech recognition hints
127128 :param barge_in: stop playing media upon speech
128129 :param acknowledge_sound_url: url to hit when sound starts
130+ :param input: type Twilio should accept "dtfm", "speech", "dtfm speech"
129131 :param kwargs: additional attributes
130132 :return: <Gather> element
131133 """
@@ -135,6 +137,13 @@ def gather(self,
135137 timeout = timeout ,
136138 finish_on_key = finish_on_key ,
137139 num_digits = num_digits ,
140+ partial_result_callback = partial_result_callback ,
141+ partial_result_callback_method = partial_result_callback_method ,
142+ language = format_language (language ),
143+ hints = hints ,
144+ barge_in = barge_in ,
145+ acknowledge_sound_url = acknowledge_sound_url ,
146+ input = input ,
138147 ** kwargs
139148 ))
140149
0 commit comments