Skip to content

Instantly share code, notes, and snippets.

@silvolu
Created December 6, 2017 19:24
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 silvolu/eb97d641088f1bf5b6f1b677d199ab2b to your computer and use it in GitHub Desktop.
Save silvolu/eb97d641088f1bf5b6f1b677d199ab2b to your computer and use it in GitHub Desktop.
First example of SSML media element.
<speak>
<par>
<media xml:id="question" begin="0.5s">
<speak>Who invented the Internet?</speak>
</media>
<media xml:id="answer" begin="question.end+2.0s">
<speak>The Internet was invented by cats.</speak>
</media>
<media begin="answer.end-0.2s" soundLevel="-6db">
<audio
src="https://actions.google.com/sounds/v1/cartoon/cartoon_boing.ogg"/>
</media>
<media repeatCount="3" soundLevel="+2.28dB"
fadeInDur="2s" fadeOutDur="0.2s">
<audio
src="https://actions.google.com/sounds/v1/animals/cat_purr_close.ogg"/>
</media>
</par>
</speak>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment