C# SpeechSynthesizer - “No voice installed on the system”
问题 I have tried to make a simple console program which uses SpeechSynthesizer from System.Speech.Synthesis to convert text to speech but it doesn't work. I am using 64-bit Windows 7 and Visual Studio 2010 (with .NET Framework 4.0 I think?) The program: using System.Speech.Synthesis; // *skip* SpeechSynthesizer speech = new SpeechSynthesizer(); speech.SetOutputToDefaultAudioDevice(); speech.Speak("Hello world"); InvalidOperationException occurs at line speech.Speak(...) with message No voice