哪里可以获得SAPI?

发布于 2024-07-16 22:23:32 字数 249 浏览 6 评论 0原文

我想创建一个支持语音的应用程序,但每当我访问 MS 网站下载 SAPI 时,都会收到错误消息。

我想知道在哪里可以获得 SAPI。

我还想知道 SAPI 5.3 应用程序是否可以在 Windows 2000、Windows XP 和 Windows Vista 上运行(如果使用 C++/MFC 编码)。

另外,使用 SAPI 的最佳方法是什么? 使用 C# .NET 或 C++/MFC ?

谢谢。

i want to create an application that is speech-enabled but whenever i get to MS website to download SAPI, i get an error.

I want to know where I can get SAPI.

and I also would like to know if a SAPI 5.3 application can work on Windows 2000, Windows XP and Windows Vista (if coded with C++/MFC).

also, what is the best way to use SAPI ? with C# .NET or C++/MFC ?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

ぃ弥猫深巷。 2024-07-23 22:23:32

Microsoft Speech SDK 可供下载 此处

选择C#还是C++取决于你自己的喜好。 使用 .NET 时,您将在 System.Speech 中找到与语音识别和合成相关的所有内容。 将此程序集的引用添加到您的项目中,您将能够直接使用语音 API。 以下是演示文本转语音功能的简单示例程序:

using System.Speech.Synthesis;

class Program
{
    static void Main(string[] args)
    {
        SpeechSynthesizer synth = new SpeechSynthesizer();
        synth.Rate = -1;
        synth.Volume = 100;

        synth.SelectVoice("Microsoft Sam");

        synth.Speak("Hello World");
    }
}

The Microsoft Speech SDK is availabe for download here.

Whether to choose C# or C++ depends on your own preferences. When using .NET you will find everything related to speech recogition and synthesis in System.Speech. Add a reference to this assembly to your project and you will be able to use the Speech API directly. The following is a simple sample program demonstrating the text-to-speech functionality:

using System.Speech.Synthesis;

class Program
{
    static void Main(string[] args)
    {
        SpeechSynthesizer synth = new SpeechSynthesizer();
        synth.Rate = -1;
        synth.Volume = 100;

        synth.SelectVoice("Microsoft Sam");

        synth.Speak("Hello World");
    }
}
幻想少年梦 2024-07-23 22:23:32

我认为您不能从微软网站下载 Speech SDK 5.3。 您可以从 http://www.microsoft.com/downloads/details.aspx?FamilyId=F26B1AA4-741A-433A-9BE5-FA919850BDBF&displaylang=en 包含 SAPI 5.3。

I do not think you can download just Speech SDK 5.3 from the microsoft website. You can download windows platform SDK from http://www.microsoft.com/downloads/details.aspx?FamilyId=F26B1AA4-741A-433A-9BE5-FA919850BDBF&displaylang=en that includes SAPI 5.3.

傾城如夢未必闌珊 2024-07-23 22:23:32

好吧,您可以从 MS 获得 SAPI。 如果他们的服务出现问题,那么您的下载也会出现问题!

我将SAPI与C一起使用,所以我无法评论C#/C++。

而且那是几年前的事了,所以我不知道我使用的是哪个版本 - 但它在 w2k 上运行良好,FWIW。

Well, you get SAPI from MS. If they have a problem serving, you have a problem downloading!

I used SAPI with C, so I can't comment on C#/C++.

Also it was some years ago, so I don't know which version I used - but it ran fine on w2k, FWIW.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文