SSML Demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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