use*_*755 4 .net speech-recognition visual-studio-2010
我正在尝试使用Windows语音识别库的项目,我正在尝试添加对System.speech的引用,因为我正在使用:
SpeechSynthesizer synth = new SpeechSynthesizer();
Run Code Online (Sandbox Code Playgroud)
但是,当我尝试添加引用时,我无法在.NET选项卡中找到System.speech.我更新了我的.NET Framework但仍然无法找到它.有没有办法简单地添加它?
检查您的项目类型及其目标框架的版本。
SpeechSynthesizer存在于 .NET 3.0、3.5 和 4 中 - 但仅存在于客户端配置文件的 v4 中。如果您的项目有其他目标,那就可以解释为什么您没有看到它。否则,它应该在那里......
小智 6
检查通常位于以下位置的参考程序集目录:C:\ Program Files\Reference Assemblies\Microsoft\Framework\v3.0 \
那应该有System.Speech dll的副本