@@ -10,7 +10,7 @@ class VoiceResponse(TwiML):
10
10
"""
11
11
def __init__ (self ):
12
12
"""
13
- Create a new <VoiceResponse >
13
+ Create a new <Response >
14
14
"""
15
15
super (VoiceResponse , self ).__init__ ()
16
16
self .name = 'Response'
@@ -43,7 +43,7 @@ def dial(self,
43
43
:param recording_status_callback: status callback URL
44
44
:param recording_status_callback_method: status callback URL method
45
45
:param kwargs: additional attributes
46
- :return: <VoiceResponse > element
46
+ :return: <Response > element
47
47
"""
48
48
return self .append (Dial (
49
49
number = number ,
@@ -65,7 +65,7 @@ def echo(self,
65
65
"""
66
66
Add a new <Echo> element
67
67
68
- :return: <VoiceResponse > element
68
+ :return: <Response > element
69
69
"""
70
70
return self .append (Echo (
71
71
** kwargs
@@ -89,7 +89,7 @@ def enqueue(self,
89
89
:param wait_url_method: wait URL method
90
90
:param workflow_sid: TaskRouter workflow SID
91
91
:param kwargs: additional attributes
92
- :return: <VoiceResponse > element
92
+ :return: <Response > element
93
93
"""
94
94
return self .append (Enqueue (
95
95
name ,
@@ -129,7 +129,7 @@ def gather(self,
129
129
:param barge_in: stop playing media upon speech
130
130
:param acknowledge_sound_url: url to hit when sound starts
131
131
:param kwargs: additional attributes
132
- :return: <VoiceResponse > element
132
+ :return: <Response > element
133
133
"""
134
134
return self .append (Gather (
135
135
action = action ,
@@ -144,15 +144,15 @@ def hangup(self):
144
144
"""
145
145
Add a new <Hangup> element
146
146
147
- :return: <VoiceResponse > element
147
+ :return: <Response > element
148
148
"""
149
149
return self .append (Hangup ())
150
150
151
151
def leave (self ):
152
152
"""
153
153
Add a new <Leave> element
154
154
155
- :return: <VoiceResponse > element
155
+ :return: <Response > element
156
156
"""
157
157
return self .append (Leave ())
158
158
@@ -161,7 +161,7 @@ def pause(self, length=None):
161
161
Add a new <Pause> element
162
162
163
163
:param length: time in seconds to pause
164
- :return: <VoiceResponse > element
164
+ :return: <Response > element
165
165
"""
166
166
return self .append (Pause (length = length ))
167
167
@@ -177,7 +177,7 @@ def play(self,
177
177
:param loop: times to loop
178
178
:param digits: play DTMF tones during a call
179
179
:param kwargs: additional attributes
180
- :return: <VoiceResponse > element
180
+ :return: <Response > element
181
181
"""
182
182
return self .append (Play (
183
183
url ,
@@ -214,7 +214,7 @@ def record(self,
214
214
:param transcribe: transcribe the recording
215
215
:param transcribe_callback: transcribe callback URL
216
216
:param kwargs: additional attributes
217
- :return: <VoiceResponse > element
217
+ :return: <Response > element
218
218
"""
219
219
return self .append (Record (
220
220
action = action ,
@@ -238,7 +238,7 @@ def redirect(self, url, method=None, **kwargs):
238
238
:param url: redirect url
239
239
:param method: redirect method
240
240
:param kwargs: additional attributes
241
- :return: <VoiceResponse > element
241
+ :return: <Response > element
242
242
"""
243
243
return self .append (Redirect (url , method = method , ** kwargs ))
244
244
@@ -248,7 +248,7 @@ def reject(self, reason=None, **kwargs):
248
248
<
A3E2
div class="diff-text-inner">
249
249
:param reason: rejection reason
250
250
:param kwargs: additional attributes
251
- :return: <VoiceResponse > element
251
+ :return: <Response > element
252
252
"""
253
253
return self .append (Reject (reason = reason , ** kwargs ))
254
254
@@ -266,7 +266,7 @@ def say(self,
266
266
:param language: language of message
267
267
:param voice: voice to use
268
268
:param kwargs: additional attributes
269
- :return: <VoiceResponse > element
269
+ :return: <Response > element
270
270
"""
271
271
return self .append (Say (
272
272
body ,
@@ -294,7 +294,7 @@ def sms(self,
294
294
:param action: action URL
295
295
:param status_callback: status callback URL
296
296
:param kwargs: additional attributes
297
- :return: <VoiceResponse > element
297
+ :return: <Response > element
298
298
"""
299
299
return self .append (Sms (
300
300
body ,
0 commit comments