Google cloud TTS and SSML

The documentation suggests that the addon supports text as well as SSML

https://cloud.google.com/text-to-speech/docs/ssml

I have not found a way to pass on SSML syntax’ed messages. I am quite interested in the <break time="3s"/> option.

Anyone has more info about whether SSML is actually supported by the addon ?

1 Like

I’ve tested this some time ago and it still works today.
Just make sure the text to be synthesized starts with <speak> and ends with </speak>
You can test that it works on the Console.

1 Like

Thanks ! That indeed works

say("<speak>the temperature <break time=\"3s\"/> is " + Math::round(Float::parseFloat(gTemperatureAverage.state.toString)) + "</speak>")

2 Likes