none
在windows 8.1上使用Microsoft.Speech.Synthesis 11 的TTS报错 RRS feed

  • 问题

  • 我按照官方文档安装了运行时和 Speech Platform SDK写了一段简单的代码

            SpeechSynthesizer s = new SpeechSynthesizer();
            PromptBuilder pb = new PromptBuilder();
            pb.AppendText("我是中国人");
            s.SelectVoice("Microsoft Server Speech Text to Speech Voice (zh-CN, HuiHui)");
            s.Speak(pb);
            Console.ReadLine();

    可是运行就报Speak error '80004005'.的错误,查了google百度都没有答案,不知道是WIDOWS 8.1的问题还是我没有安装好Microsoft Speech Platform SDK 11 ,可我都是安装官方文档上安装的啊, Speech Platform Runtime 11 , Speech Platform SDK 11、还有MSSpeech_TTS_zh-CN_HuiHui,求指教!谢谢!


    我是覃小华

    2014年4月30日 0:59

全部回复

  • Hi,

    错误意思是未知错误所以信息不是很明确。

    从这里看 http://msdn.microsoft.com/en-us/library/office/hh362831(v=office.14).aspx 这个API是关于Office开发的,而且这个系统要求里面似乎没有写8.1 http://msdn.microsoft.com/en-us/library/office/hh362873(v=office.14).aspx 所以关于Windows 8.1 能不能用这些组件确实是需要有疑问的。

    但是有一点可能要注意的,如果你把中文换成英文你看看能不能读出来?

    在这里http://msdn.microsoft.com/en-us/library/office/hh362873(v=office.14).aspx 有提到以下的东西:

    Important

    The Speech Platform Runtime 11 and the Speech Platform SDK 11 do not include Runtime Languages for speech recognition or for speech synthesis (TTS or text-to-speech). You must install them separately.  A Runtime Language includes the language model, acoustic model, and other data necessary to provision a speech engine to perform speech recognition or TTS in a particular language. There are separate Runtime Languages for speech recognition or speech synthesis. The version of Runtime Languages that you download (for example, version 11.0) must match the version of the Speech Platform Runtime that you have installed. You can download Runtime Languages using this link.

    语言包并没有包含在SDK里面。



    Barry Wang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2014年5月1日 8:17
    版主