使用 C#.net 说话软件?
如何创建 C# 代码,让我的计算机能够根据系统提供的文本说出英语单词?
How to create C# code that would allow my computer to speak english words that would be based on text provided by the system?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
文本转语音功能内置于 .Net Framework 4 中,无需引用任何外部 .dll,使用 System.Speech.Synthesis.SpeechSynthesizer 类。在 XP 上听起来不太好,但在 Vista 和 7 上更好。使用起来也很简单:
Text-to-speech is built into the .Net Framework 4 without needing to reference any external .dlls, using the System.Speech.Synthesis.SpeechSynthesizer class. It doesn't sound that great on XP, but better on Vista and 7. It's simple to use too:
你可以尝试使用我的这段代码。
您可以在 MSDN 中阅读有关 SpeechLib 的更多信息。
另一件事是,您还应该在您的项目中包含 Microsoft 语音库 5.0 作为参考。 :)
you can try to use this code of mine.
and you can read more about SpeechLib in MSDN.
another thing you should also include Microsoft speech lib 5.0 as a reference in you're project. :)