Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Second example of SSML media element.
<speak>
<par>
<media xml:id='question'>
<speak>
When was Wikipedia launched? <break time='5s'/>
Was it 2000?<break time='2s'/>
Or 2001 <break time='2s'/>
Or 2002? <break time='2s'/>
What is your answer?<break time='5s'/>
<emphasis level="moderate">It was 2001!</emphasis>
Wikipedia was launched on 15 January 2001, two days after the domain was registered by Jimmy Wales and Larry Sanger.
</speak>
</media>
<media repeatDur='60s' soundLevel="-15dB" end='question.end+0s'>
<audio src="https://storage.googleapis.com/aogssml/background_music_loop.ogg"/>
</media>
</par>
</speak>
@nagasai65

This comment has been minimized.

Copy link

nagasai65 commented Mar 28, 2020

is this working for you
I have edited so many ways even I can't able to run this
it throws an error

@Ionut-Mihai-Vladasel

This comment has been minimized.

Copy link

Ionut-Mihai-Vladasel commented Apr 13, 2020

This element is not a standard SSML element and is provided as an extra feature of the Actions on Google platform.
source: https://developers.google.com/assistant/actions/reference/ssml#par

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.