Skip to content

Instantly share code, notes, and snippets.

@mludvig
Created March 13, 2019 07:42
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
SSML Demo
# SSML-enhanced audio
ssml_text = '''
<speak>
Let me tell you a secret.
<break time="1s" />
<amazon:effect name="whispered">Amazon Alexa is my sister!</amazon:effect>
</speak>
'''
response = polly.synthesize_speech(OutputFormat='ogg_vorbis', VoiceId='Emma',
TextType='ssml', Text=ssml_text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment