Speech Synthesis from Sho

Last time, we looked at how we could do speech recognition from Sho.  Well, what about the other direction, speech synthesis (or text-to-speech)?  It turns out that’s even easier to do:

>>> clr.AddReference("System.Speech")
>>> from System.Speech.Synthesis import SpeechSynthesizer
>>> synth = SpeechSynthesizer()
>>> synth.Speak("Hello all and welcome to the Blog of Sho")

That’s all it takes to get Sho talking back to you.  If nothing else, this is a fun way to get Sho to tell you when it’s finished with a long optimization run :).

Comments (1)

Skip to main content