Beispiel #1
0
        public SsmlBuilder Emphasize(string text, EmphasisLevel level)
        {
            var formated = $"<emphasis level=\"{level.ToString()}\">{text}</emphasis>";

            textToSpeak.AppendLine(formated);
            return(this);
        }
Beispiel #2
0
 public SsmlBuilder Emphasize(EmphasisLevel level)
 {
     textToSpeak.AppendLine($"<emphasis level=\"{level.ToString()}\">");
     stack.Push("</emphasis>");
     return(this);
 }