In Alexa V1 a pause can be easily built in response by using ssml.
this.emit(':tell', "Pause now <break time='1s'/>. Start again");
But in Alexa SDK V2, the code (encoding the special characters):
handle(handlerInput) {
return handlerInput.responseBuilder
.speak( "Pause now <break time="1s"/>. Start again")
.getResponse();
},
gives the response without the pause, but repeating the sentence below. "Pause now . Start again"
How do we then put a pause in response builder of Alexa SDK v2?
Looks like syntax issues. I have tested a similar snippet in my test skill. This should work well.
handle(handlerInput) {
return handlerInput.responseBuilder
.speak('Pause now <break time="1s"/>. Start again')
.getResponse();
},
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With