3

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>

Here is rendered mp3.

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.

Eugene Krevenets
  • 1,791
  • 2
  • 20
  • 35
  • 1
    Thanks for reporting. This is a known issue that we plan to resolve in the future. For now, emphasis will work on the sentence level. – Leon Nicholls Mar 27 '18 at 16:10
  • @LeonNicholls thanks for the support! It is good to know. Can't wait to use this feature in production, btw what about other SSML feature, is there any document of the level of implementation/support? – Eugene Krevenets Mar 27 '18 at 18:31
  • Our current support for SSML is documented here: https://developers.google.com/actions/reference/ssml – Leon Nicholls Mar 27 '18 at 20:19
  • 1
    @LeonNicholls btw I have found that the same problem we have with `` tag – Eugene Krevenets Mar 29 '18 at 09:11
  • 1
    This is still not resolved as of August 2020. I need to be able add emphasis to individual words in my project! What's the story Google? – Ray Mckaig Aug 02 '20 at 15:04

0 Answers0