|
| Recognition misfiring |
 |
Fri, 4 May 2007 12:19:36 -0500 |
Given the following code (C# 3.0) any noise even a "cough" will be
recognized as the "Show Search" command what am I doing wrong?
private void BuildNavigationGrammar()
{
Choices NavChoices = new Choices("Search");
GrammarBuilder choicesBuilder = new
GrammarBuilder("Show");
choicesBuilder.Append(new SemanticResultKey("choixNav",
NavChoices));
Grammar NavGrammar = new Grammar(choicesBuilder);
cvRecognition.LoadGrammar(NavGrammar);
NavGrammar.SpeechRecognized += delegate(object sender,
SpeechRecognizedEventArgs e)
{
SemanticValue SeVa = e.Result.Semantics;
if (SeVa.ContainsKey("choixNav"))
{
Application app = System.Windows.Application.Current;
if (app != null)
{
app.Dispatcher.BeginInvoke(DispatcherPriority.Background,
new SimpleDelegate(cvAIM.ShowSearch));
}
}
};
}
|
| Post Reply
|
| Re: Recognition misfiring |
 |
Mon, 4 Jun 2007 14:41:33 -0700 |
Which recognition engine do you use? Is this on Vista or XP? I was very
curious, and tried this out myself. It works perfectly on my Vista box. I
gets no recognition unless I say "Show Search". Perhaps, there is
something
wrong with your Speech profile or microphone settings. You should run the
voice/microphone training session before using it.
"John" <lorenzen_j@hotmail.com> wrote in message
news:F17496F5-0ACF-453E-988F-AC951068E45F@microsoft.com...
> Given the following code (C# 3.0) any noise even a "cough" will
be
> recognized as the "Show Search" command what am I doing wrong?
>
> private void BuildNavigationGrammar()
> {
> Choices NavChoices = new Choices("Search");
>
> GrammarBuilder choicesBuilder = new
GrammarBuilder("Show");
> choicesBuilder.Append(new
SemanticResultKey("choixNav",
> NavChoices));
>
> Grammar NavGrammar = new Grammar(choicesBuilder);
>
> cvRecognition.LoadGrammar(NavGrammar);
>
> NavGrammar.SpeechRecognized += delegate(object sender,
> SpeechRecognizedEventArgs e)
> {
> SemanticValue SeVa = e.Result.Semantics;
> if (SeVa.ContainsKey("choixNav"))
> {
> Application app = System.Windows.Application.Current;
> if (app != null)
> {
>
> app.Dispatcher.BeginInvoke(DispatcherPriority.Background, new
> SimpleDelegate(cvAIM.ShowSearch));
> }
> }
> };
> }
>
|
| Post Reply
|
|
|
|
|
|
|
|
|
|