新单词添加到Windows语音识别使用C# [英] Add new word to windows speech recognition using C#

查看:386
本文介绍了新单词添加到Windows语音识别使用C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何使用语音识别在C#中,但问题是如何添加一个特殊的词或名字进入Windows语音字典数据库? $ B $ Windows 7中的B和8,你可以做到这一点容易使用:

i know how to use speech recognition in C# but the problem is how to add a special word or name into windows speech dictionary database? in windows 7 and 8 you can do it easily using:

打开语音字典>添加新词>输入字的文本>录制字由麦克风<语音/ STRONG>

Opening Speech Dictionary > Add new word > Enter the Text of word > Record the pronunciation of the word by Microphone

然后,没关系!字会添加到数据库中。
,我们还可以编辑使用语音字典的单词。 ?
没有人知道如何才能做到这些步骤.NET和编程

and then,it's OK! the word will add to database. we also can edit the word using the Speech Dictionary. does anyone know how can we do these steps with .NET and programming?

编辑:
它很简单,Windows语音词典具备有限的数据库中,我们如何通过.NET C#添加一些换句话说这个?
为例名沙拉不Windows语音字典中。我怎样才能添加这个词,它的发音为Windows语音词典?

its very simple, windows speech dictionary has limited database , how can we add some other words into this via .NET C#? for example name "Salad" doesn't exist in windows speech dictionary. how can i add this word and its pronunciation into windows speech dictionary?

对不起,我有点新的这个伟大的网站。

sorry i'm a bit new to this great site.

推荐答案

您将需要使用的 SAPI自动化的API (又名SpeechLib)访问的 ISpLexicon 接口。

You'll need to use the SAPI Automation APIs (aka SpeechLib) to access the ISpLexicon interfaces.

在特定的,< A HREF =http://msdn.microsoft.com/en-us/library/ee450824%28v=vs.85%29.aspx相对=nofollow> ISpLexicon :: AddPronunciation 将增加一个新字(及其相关的发音)的用户词库。

In particular, ISpLexicon::AddPronunciation will add a new word (and its associated pronunciation) to the user lexicon.

这篇关于新单词添加到Windows语音识别使用C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆