Skip to content

Instantly share code, notes, and snippets.

@mludvig
Created March 13, 2019 07:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mludvig/0200dabfc2ce30e581a572c127aaf763 to your computer and use it in GitHub Desktop.
Save mludvig/0200dabfc2ce30e581a572c127aaf763 to your computer and use it in GitHub Desktop.
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