Writing Responses with Markdown
Speech Markdown[35] is a community-led project that makes it possible to write your speech responses using a variation of the popular Markdown[36] text-processing tool.
As a simple example of Speech Markdown’s capabilities, consider the following SSML that has an interjection:
| <speak> |
| <say-as interpret-as="interjection">Great Scott!</say-as> |
| </speak> |
Using Speech Markdown, this same response could be written like this:
| (Great Scott!)[interjection] |
While the SSML document may have been a bit more clear in purpose, the Speech Markdown snippet is a clear winner when it comes to brevity.
Aside from interjections, Speech Markdown offers full parity with all of SSML, including Alexa-specific tags such as
Get Build Talking Apps for Alexa now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.