Speech synthesis in .NET

Have you ever tried speech synthesis (i.e. text pronounced by computer)? It’s surprisingly easy. The following trivial example announces the current time (language: PowerShell): Add-Type -AssemblyName System.Speech $synthesizer = New-Object -TypeName System.Speech.Synthesis.SpeechSynthesizer $synthesizer.Speak("It’s {0:H m}" -f (Get-Date)) You can even make voice reporting of exceptions: $nullReference.ToString() trap { Add-Type -AssemblyName System.Speech $synthesizer = New-Object -TypeName …

Continue reading ‘Speech synthesis in .NET’ »