Microsoft语音语法中的匹配通配符/听写 [英] Matching wildcard/dictation in Microsoft Speech Grammar

查看:87
本文介绍了Microsoft语音语法中的匹配通配符/听写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Microsoft Speech API加载grxml语法:

I'm using Microsoft Speech API to load a grxml grammar:

Grammar grammar = new Grammar(file);
grammar.Enabled = true;

SpeechRecognitionEngine sre = GetEngine();
sre.LoadGrammarAsync(grammar);

基于MSDN,我找不到与通配符/口头文字相匹配的标签,例如:

Based on MSDN I can not find tag to match a wildcard / spoken text like:

<item>My message is {dictation}</item>

带有DictationGrammar和appendDictation()的代码似乎可用.使用*的WSRMacro XML也可以使用它,但是我不怎么用XML来做到这一点?

It seems to be availalble with code with a DictationGrammar and appendDictation(). It's also available with WSRMacro XML using * but I do not how to do it in XML ?

跳过文本,但我需要识别它.

The skip text but I need to recognize it.

我想念什么吗?

推荐答案

如果您使用的是Kinect语音引擎,则根本无法使用听写.引擎根本不支持它.

If you're using the Kinect speech engine, you cannot use dictation at all; the engine simply doesn't support it.

有关更多详细信息,请查看我对

For more details, you can look at my answer to this question.

这篇关于Microsoft语音语法中的匹配通配符/听写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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