Created
December 19, 2016 20:40
-
-
Save mfurtak/b99540ef705016921d24388793865fe4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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