Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default to using SSML #12

Open
sjmog opened this issue Mar 9, 2018 · 1 comment
Open

Default to using SSML #12

sjmog opened this issue Mar 9, 2018 · 1 comment

Comments

@sjmog
Copy link
Owner

sjmog commented Mar 9, 2018

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':

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.

@sjmog
Copy link
Owner Author

sjmog commented Mar 9, 2018

This also means we can remove any references to ssml: true, which removes a parameter from respond (thank goodness)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant