@@ -188,7 +188,7 @@ class Say(Verb):
188
188
:param language: allows you pick a voice with a specific language's accent
189
189
and pronunciations. Twilio currently supports languages
190
190
'en' (English), 'es' (Spanish), 'fr' (French), and 'de'
191
- (German).
191
+ (German), 'en-gb' (English Great Britain") .
192
192
193
193
:param loop: specifies how many times you'd like the text repeated.
194
194
Specifying '0' will cause the the :class:`Say` verb to loop
@@ -198,6 +198,7 @@ class Say(Verb):
198
198
WOMAN = 'woman'
199
199
200
200
ENGLISH = 'en'
201
+ BRITISH = 'en-gb'
201
202
SPANISH = 'es'
202
203
FRENCH = 'fr'
203
204
GERMAN = 'de'
@@ -206,14 +207,6 @@ def __init__(self, text, voice=None, language=None, loop=None, **kwargs):
206
207
Verb .__init__ (self , voice = voice , language = language , loop = loop ,
207
208
** kwargs )
208
209
self .body = text
209
- if voice and voice not in [self .MAN , self .WOMAN ]:
210
- raise TwimlException (
211
- "Invalid Say voice parameter, must be 'man' or 'woman'" )
212
- if language and language not in \
213
- [self .ENGLISH , self .SPANISH , self .FRENCH , self .GERMAN ]:
214
- raise TwimlException (
215
- "Invalid Say language parameter, must be "
216
- "'en', 'es', 'fr', or 'de'" )
217
210
218
211
class Play (Verb ):
219
212
"""Play an audio file at a URL
0 commit comments