What are the different between “Windows.Media.SpeechSynthesis” and “System.Speech.Synthesis”?

和自甴很熟 提交于 2019-12-22 12:29:14

问题


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?

EDIT:

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.


回答1:


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 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.



来源:https://stackoverflow.com/questions/25710852/what-are-the-different-between-windows-media-speechsynthesis-and-system-speec

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!