【问题标题】:Is there a .NET 2.0 Version of System.Speech.dll?System.Speech.dll 是否有 .NET 2.0 版本?
【发布时间】:2012-11-26 21:52:39
【问题描述】:

我想知道是否有.NET 2.0 版本的 System.Speech.dll

我的项目中有一堆dlls,目标是.NET 2.0,我注意到一个项目引用了System.Speech.dll;我尝试在 Google 上查找 .Net 2.0 中是否有任何内容,但无法弄清楚,以下是我如何计算目录中 .NET 版本的 dll 的代码。

    [TestMethod]
    public void TestDotNetVersion()
    {
        foreach (var file in Directory.EnumerateFiles(@"path to all dlls"))
        {
            Assembly assembly = null;
            string version = null;
            try
            {
                assembly = Assembly.ReflectionOnlyLoadFrom(file);
                version = assembly.ImageRuntimeVersion;
            }
            catch
            {
            }
        }
    }

都是.NET v2.0.50727 当我使用 .NET Reflector 时,我发现了一个引用 System.Speech.dll 的 dll。 .NET 2.0 dll 是否可以引用针对 .NET 3.0 或 3.5 或 4 版本的 dll? (据我所知,我知道这不可能) 如果没有,我在哪里可以找到 System.Speech.dll 的 .NET 2.0 版本?

谢谢!

【问题讨论】:

  • 我必须使用我们所拥有的,并在此基础上再接再厉,泰瑟枪是什么?

标签: c# .net speech-recognition text-to-speech speech


【解决方案1】:

我很确定 System.Speech 是在 .Net 3.0 - http://msdn.microsoft.com/en-us/library/system.speech.recognition(v=vs.85).aspx 中引入的。它确实在 Windows Vista 中首次亮相 - http://msdn.microsoft.com/en-us/magazine/cc163663.asp

不要忘记,如果您针对的是旧系统,则必须安装识别引擎。 XP 和 Server 操作系统默认没有安装识别引擎。这可能会有所帮助 - What is the difference between System.Speech.Recognition and Microsoft.Speech.Recognition?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-05-22
    • 2011-07-06
    • 2018-02-18
    • 2023-02-04
    相关资源
    最近更新 更多