Skip to content

Commit 2fcbb8b

Browse files
authored
Merge pull request #43 from twilio/twiml-speech-recognition-alpha
Add speech recognition parameters
2 parents bcb7692 + a9a4b93 commit 2fcbb8b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

twilio/twiml/voice_response.py

+18
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ def gather(self,
105105
timeout=None,
106106
finish_on_key=None,
107107
num_digits=None,
108+
partial_result_callback=None,
109+
partial_result_callback_method=None,
110+
language=None,
111+
hints=None,
112+
barge_in=None,
113+
acknowledge_sound_url=None,
108114
**kwargs):
109115
"""
110116
Add a new <Gather> element
@@ -114,6 +120,12 @@ def gather(self,
114120
:param timeout: time to wait while gathering input
115121
:param finish_on_key: finish on key press
116122
:param num_digits: digits to collect
123+
:param partial_result_callback: callback url
124+
:param partial_result_callback_method: callback method
125+
:param language: locale string
126+
:param hints: speech recognition hints
127+
:param barge_in: stop playing media upon speech
128+
:param acknowledge_sound_url: url to hit when sound starts
117129
:param kwargs: additional attributes
118130
:return: <Gather> element
119131
"""
@@ -123,6 +135,12 @@ def gather(self,
123135
timeout=timeout,
124136
finish_on_key=finish_on_key,
125137
num_digits=num_digits,
138+
partial_result_callback=partial_result_callback,
139+
partial_result_callback_method=partial_result_callback_method,
140+
language=language,
141+
hints=hints,
142+
barge_in=barge_in,
143+
acknowledge_sound_url=acknowledge_sound_url,
126144
**kwargs
127145
))
128146

0 commit comments

Comments
 (0)