Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add a break/pause of few seconds to Google assistant response

While sending a response to the user how do I add a pause/break of few seconds? Here is an example:

Response text: "The answer to the question is  < Pause-For-2-Seconds > answer"

I tried the <break = "2s" /> and that do not work for me.

like image 526
JAGADISH AGRAWAL Avatar asked Dec 05 '25 13:12

JAGADISH AGRAWAL


1 Answers

You have to use SSML on your answer, to do that just wrap what your response is with <speak> tag then add another tag <break time="2s"/>, like this:

<speak>The answer to the question is <break time="2s"/> answer</speak>

For a more complete information on SSML check this.

like image 192
Bruno Araújo Avatar answered Dec 09 '25 00:12

Bruno Araújo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!