I found that when I'm sending back a response with <emphasis>
inside of sentence Actions of Google considers it as a new paragraph and breaks the sentance.
For example:
<speak>
<p>
Do you like <emphasis level="strong">red</emphasis>, <emphasis level="strong">blue</emphasis> or <emphasis level="strong">green</emphasis> car?
</p>
<p>
Do you like red, blue or green car?
</p>
</speak>
This bug could be replicated in TTS Simulator
. Or sent as a response by official node.js SDK
I have added 2 sentences here and <p>
to highlight the difference. But, actually, it isn't necessary here. And the problem could be replicated without those tags.
According to SSML standard <emphasis>
could be in the middle of a sentence.
In additional. I've tried the same tag on Amazon Alexa and it doesn't consider it as a new line.
PS:
More over Actions of Google breaks rendering of speech text and adds an extra newline before/after the <emphasis>
. But it is the minor problem - because I could fix it by displayText. Broken speech is more important here.