Groups > Microsoft > Microsoft Speech Tech SDK > Re: Finding actually what SAPI detected




Finding actually what SAPI detected

Finding actually what SAPI detected
Mon, 24 Mar 2008 01:19:00 -070
Hi,

I am loading a grammar file into my program and asking a user to utter
some phrase. If the user utters the command correctly I do the said
task. But if the utterance is incorrect, I tell the user of incorrect
utterance, however I want to find out what SAPI has actually detected
when utterance is incorrect.

Is this a possible? If So How?

Post Reply
Re: Finding actually what SAPI detected
Mon, 24 Mar 2008 03:37:44 -070
On Mar 24, 1:19 pm, nIgHtCrAwLeR <pranav...@gmail.com> wrote:
> Hi,
>
> I am loading a grammar file into my program and asking a user to utter
> some phrase. If the user utters the command correctly I do the said
> task. But if the utterance is incorrect, I tell the user of incorrect
> utterance, however I want to find out what SAPI has actually detected
> when utterance is incorrect.
>
> Is this a possible? If So How?
>
> Thank You

To overcome above problem I tried to find Alternate Phrases detected
in the event of False Recognition but for some reason GetAlternates is
Post Reply
Re: Finding actually what SAPI detected
Tue, 25 Mar 2008 08:18:39 -070
Yes, you're on the right track with GetAlternates.  Take a look at the 
example code on MSDN if you haven't already 
http://msdn2.microsoft.com/en-us/library/ms718938(VS.85).aspx.

In some cases when the recognizer generates a false recognition event there 
won't be an actual recognition result with text or alternates.  It sounds 
like that's what's happening with your program since you're getting a return 
value of S_FALSE.

This can happen when the user says something that isn't included in the 
grammar.  For example, if you had a grammar that only accepted the word 
"foo" and the user says "bar", there's very little chance
that the 
recognizer will return a false recognition of "foo".

One way to see what recognition the recognizer is "considering" is to
add 
SPEI_HYPOTHESIS to your event interest and then check its text when this 
event is received.

-- Steve Meyer

This posting is provided "AS IS" with no warranties, and confers no
rights.

"nIgHtCrAwLeR" <pranavdes@gmail.com> wrote in message 
news:0b8ac6ad-3c39-4187-bf62-94b225b811a5@s19g2000prg.googlegroups.com...
On Mar 24, 1:19 pm, nIgHtCrAwLeR <pranav...@gmail.com> wrote:
> Hi,
>
> I am loading a grammar file into my program and asking a user to utter
> some phrase. If the user utters the command correctly I do the said
> task. But if the utterance is incorrect, I tell the user of incorrect
> utterance, however I want to find out what SAPI has actually detected
> when utterance is incorrect.
>
> Is this a possible? If So How?
>
> Thank You

To overcome above problem I tried to find Alternate Phrases detected
in the event of False Recognition but for some reason GetAlternates is
returning S_FALSE. Am I going in right direction here? 
Post Reply
about | contact