SAPI5 XML Speaking

I would like to use "SpeechSynthesizer" to speak text, but this text contains some XML tags. Using the old COM object, I used

 S5Voice.Speak uString, SVSFDefault Or SVSFIsXML 

However, SpeechSynthesizer does not have an overloaded function that I could use to determine if the text is an XML string.

+3
source share
1 answer

System.Speech.Synthesis.SpeakSsmlgotta do the trick. Otherwise, you will have to cut the tags before sending them to the synthesis engine.

0
source

All Articles