From 30cf2cd28cb1ff7ad04d84df74059d0417c0e547 Mon Sep 17 00:00:00 2001 From: Ben Phillips Date: Wed, 2 Nov 2011 13:48:19 +0000 Subject: [PATCH] Support British voice. --- twilio/twiml.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/twilio/twiml.py b/twilio/twiml.py index 0c5b1fba0a..9b2ad33553 100644 --- a/twilio/twiml.py +++ b/twilio/twiml.py @@ -193,6 +193,7 @@ class Say(Verb): WOMAN = 'woman' ENGLISH = 'en' + BRITISH = 'en-gb' SPANISH = 'es' FRENCH = 'fr' GERMAN = 'de' @@ -205,10 +206,11 @@ def __init__(self, text, voice=None, language=None, loop=None, **kwargs): raise TwimlException( "Invalid Say voice parameter, must be 'man' or 'woman'") if language and language not in \ - [self.ENGLISH, self.SPANISH, self.FRENCH, self.GERMAN]: + [self.ENGLISH, self.BRITISH, self.SPANISH, self.FRENCH, + self.GERMAN]: raise TwimlException( "Invalid Say language parameter, must be " - "'en', 'es', 'fr', or 'de'") + "'en', 'en-gb', 'es', 'fr', or 'de'") class Play(Verb): """Play an audio file at a URL