本文介绍了语音平台11的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



新的Windows 2008 64位服务器,已安装语音平台运行时(x64), 

语音文本到语音语音(en-US,Helen),语音识别语言 - TELE(en-US),Visual Studio C#2010快递



创建了一个仅使用此示例的语音合成部分的项目,http:// msdn .microsoft.com / zh-CN / library / hh338697.aspx。
$


我只想要一个简单的合成样本来听取/测试文本到语音。 



编译并运行我的样本但产生以下错误



似乎没有明显的解决方案。 



$
C:\ Users \rschuster \Documents\Visual Studio 2010 \Projects \ConsoleApplication1 \ConsoleApplication1 \bin\Release> ConsoleApplication1.exe 
$


未处理的异常:System.Runtime.InteropServices.COMException:检索 

 组件w的COM类工厂ith CLSID {D941651C-44E6-4C17-BADF-C36826FC3424} 

由于以下错误而失败:80040154未注册类(例外f $ 0 $ 0来自HRESULT:0x80040154(REGDB_E_CLASSNOTREG))。 />
    at Microsoft.Speech.Synthesis.SpeechSynthesizer..ctor()

   在C:\ Users \ rschuster \documents \visual中的ConsoleApplication1.Program.Run()中,您需要支持
tudio 2010 \Projects \ConsoleApplication1 \ConsoleApplication1 \Program.cs :第24行

   在C:\ Users \rschuster \docu中的ConsoleApplication1.Program.Main(String [] args)中。
ments \ visual studio 2010 \Projects\ConsoleApplication1 \ConsoleApplication1 \\ \\ Progra

m.cs:第19行

解决方案


New Windows 2008 64bit server, installed Speech Platform Runtime (x64), 
Speech Text to Speech Voice (en-US, Helen), Speech Recognition Language - TELE (en-US), Visual Studio C# 2010 express

Created a project that just uses only the speech synthesis part of this sample, http://msdn.microsoft.com/en-us/library/hh338697.aspx.

I just want a simple synthesis sample to hear/test text to speech. 

Compile and run my sample but it produces the below error

There doesn't seem to be an obvious solution. 


C:\Users\rschuster\Documents\Visual Studio 2010\Projects\ConsoleApplication1\ConsoleApplication1\bin\Release>ConsoleApplication1.exe 

Unhandled Exception: System.Runtime.InteropServices.COMException: Retrieving the 
 COM class factory for component with CLSID {D941651C-44E6-4C17-BADF-C36826FC3424} 
failed due to the following error: 80040154 Class not registered (Exception f$0 $0rom HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
   at Microsoft.Speech.Synthesis.SpeechSynthesizer..ctor()
   at ConsoleApplication1.Program.Run() in C:\Users\rschuster\documents\visual s
tudio 2010\Projects\ConsoleApplication1\ConsoleApplication1\Program.cs:line 24
   at ConsoleApplication1.Program.Main(String[] args) in C:\Users\rschuster\docu
ments\visual studio 2010\Projects\ConsoleApplication1\ConsoleApplication1\Progra
m.cs:line 19

解决方案


这篇关于语音平台11的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-13 22:07