问题描述
除了默认的安娜语音外,我还需要在SpeechSynthesizer中使用男性语音。我从Microsoft安装了一些文件,并且GetInstalledVoices()方法说现在我有Microsoft Anna,Microsoft Mary,Microsoft Mike和Sample TTS Voice。
在我尝试设置语音之后
I need to use male voice in SpeechSynthesizer in addition to default Anna voice. I installed some files from Microsoft, and GetInstalledVoices() method says now I have Microsoft Anna, Microsoft Mary, Microsoft Mike and Sample TTS Voice.After I'm trying to set voice
speaker.SelectVoice("Microsoft Mike");
我的程序抛出异常:无法设置声音。没有安装匹配的语音或禁用了语音。
my program throws exception: Cannot set voice. No matching voice is installed or the voice was disabled.
我应该正确安装什么以及如何启用Mike的语音?系统是Windows7。
What should I exactly install and how to enable Mike's voice? System is Windows7.
推荐答案
尝试了Web上的许多建议后,找到了可行的解决方案:
-安装Microsoft Speech平台SDK(x64)v11.0。
-安装所需的运行时语言(版本11)。
-从此。
-安装Microsoft Server Speech Platform Runtime(x64)(!-这是我所缺少的)。
-您必须将构建中的平台目标设置为x64才能使用Helen或ZiraPro之类的新声音
After trying many suggestions from web found working solution:
- install Microsoft Speech Platform SDK (x64) v11.0.
- install Runtime Languages (Version 11) you need.
- do registry changes from the end of this this thread.
- install Microsoft Server Speech Platform Runtime (x64) (! - this is what i was missing).
- and you have to set platform target in build to x64 to use new voices like Helen or ZiraPro
这篇关于如何在SpeechSynthesizer()中安装和使用其他声音?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!