8000 Added British voice support by tavva · Pull Request #34 · twilio/twilio-python · GitHub
[go: up one dir, main page]

Skip to content

Added British voice support #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions twilio/twiml.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ class Say(Verb):
WOMAN = 'woman'

ENGLISH = 'en'
BRITISH = 'en-gb'
SPANISH = 'es'
FRENCH = 'fr'
GERMAN = 'de'
Expand All @@ -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
Expand Down
0