Open sjmog opened 6 years ago
Wrap response text in a <speak> tag by default. This means that there will be no need to designate SSML usage: it'll 'just work':
<speak>
respond("Hi there") # => "<speak>Hi there</speak>" respond("<say-as interpret-as="spell-out">hello</say-as>") # => "<speak><say-as="spell-out">hello</say-as></speak>"
If the user writes SSML with <speak> tags, strip them out, as nested <speak> tags break Alexa.
This also means we can remove any references to ssml: true, which removes a parameter from respond (thank goodness)
ssml: true
respond
Wrap response text in a
<speak>
tag by default. This means that there will be no need to designate SSML usage: it'll 'just work':