问题描述
我有一个Windows 7的计算机培训,以我的声音,我想用一个软件包,我已经创建了一起分发我的演讲的个人资料。
I have a Windows 7 computer trained to my voice, and I would like to distribute my speech profile along with a software package I have created.
我所知道的工具如WSRProfile.exe(http://www.microsoft.com/download/en/details.aspx?id=16296),它允许一个保存和加载新的语音配置文件。
I know of tools such as WSRProfile.exe (http://www.microsoft.com/download/en/details.aspx?id=16296), which allow one to save and load new speech profiles.
不过,有一个远在我自己的代码(C#)来实现这一点,无需任何外部工具或应用程序事先?
However, is there a away to implement this in my own code (C#), without requiring any external tools or applications?
感谢。
推荐答案
您可以按照这里所描述的过程:
的
You can follow the procedure described here:http://blogs.msdn.com/b/robch/archive/2007/02/19/transfering-profiles-programatically.aspx
基本上,以编程方式导入配置文件,您将需要创建一些注册表项和复制/重命名以前保存的文件。
的解释使用SAPI的C ++版本,但过程肯定是有效的C#版本。
Basically, to programmatically import profiles, you will need to create some registry keys and to copy/rename previously saved files.The explanation uses the C++ version of SAPI but the procedure is surely valid for C# version.
这篇关于编程导入MS Speech API的语音配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!