语音平台11在桌面应用程序中的识别 [英] Speech Platform 11 Recognition in a Desktop App
问题描述
我正在我的应用程序上使用语音识别引擎进行一些测试,这是我的代码中的示例语法:
******
GrammarBuilder _Start = new GrammarBuilder("start action");
语法_Actions = new Grammar(_Start);
******
当我说"开始行动"时,我应该认出来。
我遇到的问题是:
- 当我说"开始动作"时确实会识别,但如果我说"开始动作",它也会识别它的语法。
< p style ="border:none; font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif;概要:0像素;填充右:0像素;颜色:#333333;字体大小:14px的; line-height:20.1620178222656px">
如果我使用Choices制作语法,那就更差了。
*******
Choices _Action = new Choices();
_Action.Add(new string [] {" Recording"," Playback"," Transfer" ;});
$
GrammarBuilder gbAction = new GrammarBuilder();
gbAction.Append(" Start");
gbAction.Append( _Action);
$
语法_Actions = new Grammar(gbAction);
******
如果我说"开始开始"。
我得到"开始录制"或"开始播放",...,随机识别。
这个行为是"正常"?或者我错过了某些设置?有些设置可能吗?
我尝试使用Input from wav文件而不是DefaultInput,结果相同。
注意:如果我使用非常长的短语,例如"立即启动语音引擎",则它不会将"start start"识别为语音。
但是它变成了我的应用程序非常尴尬的语音界面。
使用:
MS Speech Platform 11 SDK
MS Speech Runtime 11
操作系统:W7
目标CPU :X64
提前Thx。
这对您有用。
I'm doing some tests with speech recognition engine on my app, this is a sample grammar from my code:
******
GrammarBuilder _Start = new GrammarBuilder("start action");
Grammar _Actions = new Grammar(_Start);
******
This should recognize when i say "start action".
The problem i'm having is:
- It indeed recognize when i say "start action", but if i say "start start" it also recognize it the grammar.
And if i make the Grammar using Choices, its even worse.
*******
Choices _Action = new Choices();
_Action.Add(new string[] {"Recording", "Playback", "Transfer"});
GrammarBuilder gbAction = new GrammarBuilder();
gbAction.Append("Start");
gbAction.Append(_Action);
Grammar _Actions = new Grammar(gbAction);
******
If i say "start start".
I get "Start Recording" or "Start Playback", ..., recognized randomly.
This behavior is "normal"? or i'm missing somethng? some settings maybe?
I tried using Inputfrom wav file instead of DefaultInput, the results where the same.
Note: If i use a very long phrase like "start speech engine now", it doesn't recognize the "start start" as speech.
But then it becomes a very awkward voice interface for my app.
Using:
MS Speech Platform 11 SDK
MS Speech Runtime 11
OS : W7
Target CPU: X64
Thx in advance.
Hi,
This can useful to you.
Voice Recognition : Speech Recognition with .NET Desktop Applications
这篇关于语音平台11在桌面应用程序中的识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!