Skip to content

Instantly share code, notes, and snippets.

@mfurtak
Created December 19, 2016 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfurtak/b99540ef705016921d24388793865fe4 to your computer and use it in GitHub Desktop.
Save mfurtak/b99540ef705016921d24388793865fe4 to your computer and use it in GitHub Desktop.
String speechMarkup = new SsmlBuilder()
.sentence("Welcome to Fabric!")
.sentence(s -> s.text("To get started, please visit fabric dot").spellOut("IO").text("slash home"))
.sentence("Apps that you mark as favorites will be included in your briefings")
.build();
// speechMarkup gets SSML equivalent to:
//
// <speech>
// <s>Welcome to Fabric!</s>
// <s>To get started, please visit fabric dot <say-as interpret-as="spell-out">IO</say-as> slash home</s>
// <s>Apps that you mark as favorites will be included in your briefings</s>
// </speech>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment