I am trying to do a project that uses the windows speech recognition libraries and I am trying to add a reference to System.speech since I am using:
SpeechSynthesizer synth = new SpeechSynthesizer();
However, I can’t find System.speech in the .NET tab when I try to add a reference. I updated my .NET Framework and still can’t find it. Is there a way to simply add it?
Check your project type, and the version of the framework it’s targeting.
SpeechSynthesizerexists in .NET 3.0, 3.5 and 4 – but only in v4 of the client profile. If your project targets anything else, that would explain why you’re not seeing it. Otherwise, it should be there though…