“Windows.Media.SpeechSynthesis"和“Windows.Media.SpeechSynthesis"有什么区别?和“系统.语音.合成"? [英] What are the different between "Windows.Media.SpeechSynthesis" and "System.Speech.Synthesis"?

查看:32
本文介绍了“Windows.Media.SpeechSynthesis"和“Windows.Media.SpeechSynthesis"有什么区别?和“系统.语音.合成"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试确定在用 C# 开发的专业应用程序中,这两个 API 中的哪一个具有更多的功能来进行文本到语音转换.

I'm trying t o determined which of the two APIs have more features to do text-to-speech in a pro application developed in C#.

操作系统在这里不是问题,只是这两个命名空间如何提供更多功能、高质量声音和稳定性.

OS is not an issues here, just how of the two namespaces offer more features, quality voices and stability.

有哪位机构掌握这两种技术并能告诉我这两个命名空间的不同之处吗?就特征而言,其中一个是另一个的超集吗?

Have any body master both tech and could tell me about the different in those two namespaces? Is one of them a super-set of the another in terms of features?

在这两个命名空间后面是同一个语音合成引擎?

Behind of those two namespaces is the same speech synthesis engine?

我的网络应用程序将在服务器端完成所有文本到语音转换的工作.

My web app will do all the text-to-speech stuff at server side.

推荐答案

Windows.Media.SpeechSynthesis 是 Windows 运行时的一部分,仅支持 Windows 应用商店应用.它不能从您的服务器应用程序调用,因此不会满足您的目的.

Windows.Media.SpeechSynthesis is part of the Windows Runtime and supports only Windows Store apps. It cannot be called from your server app and so won't serve your purpose.

System.Speech.SpeechSynthesis 应该适合你.您可以在服务器上调用它通过 SetOutputToWaveFile 然后就可以公开生成的波形文件\来自服务器.

System.Speech.SpeechSynthesis should work for you. You can call it on the server to generate a sound file via SetOutputToWaveFile You can then expose the generated wave file \ from the server.

除非他们针对不同的环境,否则最终结果将是相似的.

Barring that they target different environments, the end results would be similar.

这篇关于“Windows.Media.SpeechSynthesis"和“Windows.Media.SpeechSynthesis"有什么区别?和“系统.语音.合成"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆