Groups > Microsoft > Microsoft Speech Tech > Re: Custom Grammar




Custom Grammar

Custom Grammar
Fri, 4 Jan 2008 09:55:03 -0800
Once I have defined the custom grammar that I am going to use, is there a way 
Post Reply
Re: Custom Grammar
Thu, 10 Jan 2008 14:25:19 -080
Hi Bret,

I'm not exactly sure what you mean by "train the Speech Engine as there is

with the default grammar".  If your using a desktop recognizer and the 
speaker's recognition profile has adptation turned on, the system will adapt 
to the speaker's voice even when using your grammar.

If you want to use the training UI to train to a specifc text or list of 
words, that possible, too. You'll need to create a training text file.  Each 
"pane" of training text in the UI corresponds to each line of text in
the 
training file.  So if I wanted to train the system using the words
"foo", 
"bar", and "baz".  I'd first create a file that looks like
this:

<start of file>
foo
bar
baz
<end of file>

(Don't acutally included the stuff in angle brackets.)  Once you've created 
your training file the easiest way to train with it is to use the Reco.exe 
sample program that's part of the SAPI SDK.  I think the SDK inlcudes a 
compiled binary you can run, but it also has the source code so you can 
build it yourself.

After you start up Reco.exe here are the steps to take for training:
    1. Select the Inpro radio button.
    2. Click the Create Recognition Context checkbox.
    3. From the menu bar select Dictation->Train from file.
    4. Use the file selection dialog to load your training text file.

Once you've selected your training text the User Training UI will open and 
then you use it like you normally would.

You can also this ability to your own program.  To do so use the 
SpRecognizer::DisplayUI method passing it the SPDUI_UserTraining flag and a 
string that containts the training text.   See 
http://msdn2.microsoft.com/en-us/library/ms718586(VS.85).aspx and 
http://msdn2.microsoft.com/en-us/library/ms717316(VS.85).aspx for the 
details.  And have a look at the Reco code that's in the SAPI SDK to see 
exactly how it does this.

I hope this tells you what you wanted to know.

-- Steve Meyer

This posting is provided "AS IS" with no warranties, and confers no
rights.
Please do not send e-mail directly to this alias. This alias is for 
newsgroup purposes only.

"Brett" <Brett@discussions.microsoft.com> wrote in message 
news:CEDBC6BA-EC08-4753-98A1-A6B76C1E69BD@microsoft.com...
> Once I have defined the custom grammar that I am going to use, is there a 
> way
> to train the Speech Engine as there is with the default grammar? 
Post Reply
Re: Custom Grammar
Fri, 21 Mar 2008 19:23:01 -070
Steve,

Is it possible to train using the .NET 3.0 API and the System.Speech 
namespaces?



Jeff

"Steve Meyer [MSFT]" wrote:

> Hi Bret,
> 
> I'm not exactly sure what you mean by "train the Speech Engine as
there is 
> with the default grammar".  If your using a desktop recognizer and the

> speaker's recognition profile has adptation turned on, the system will
adapt 
> to the speaker's voice even when using your grammar.
> 
> If you want to use the training UI to train to a specifc text or list of 
> words, that possible, too. You'll need to create a training text file. 
Each 
> "pane" of training text in the UI corresponds to each line of
text in the 
> training file.  So if I wanted to train the system using the words
"foo", 
> "bar", and "baz".  I'd first create a file that looks
like this:
> 
> <start of file>
> foo
> bar
> baz
> <end of file>
> 
> (Don't acutally included the stuff in angle brackets.)  Once you've created

> your training file the easiest way to train with it is to use the Reco.exe

> sample program that's part of the SAPI SDK.  I think the SDK inlcudes a 
> compiled binary you can run, but it also has the source code so you can 
> build it yourself.
> 
> After you start up Reco.exe here are the steps to take for training:
>     1. Select the Inpro radio button.
>     2. Click the Create Recognition Context checkbox.
>     3. From the menu bar select Dictation->Train from file.
>     4. Use the file selection dialog to load your training text file.
> 
> Once you've selected your training text the User Training UI will open and

> then you use it like you normally would.
> 
> You can also this ability to your own program.  To do so use the 
> SpRecognizer::DisplayUI method passing it the SPDUI_UserTraining flag and a

> string that containts the training text.   See 
> http://msdn2.microsoft.com/en-us/library/ms718586(VS.85).aspx and 
> http://msdn2.microsoft.com/en-us/library/ms717316(VS.85).aspx for the 
> details.  And have a look at the Reco code that's in the SAPI SDK to see 
> exactly how it does this.
> 
> I hope this tells you what you wanted to know.
> 
> -- Steve Meyer
> 
> This posting is provided "AS IS" with no warranties, and confers
no rights.
> Please do not send e-mail directly to this alias. This alias is for 
> newsgroup purposes only.
> 
> "Brett" <Brett@discussions.microsoft.com> wrote in message

> news:CEDBC6BA-EC08-4753-98A1-A6B76C1E69BD@microsoft.com...
> > Once I have defined the custom grammar that I am going to use, is
there a 
> > way
> > to train the Speech Engine as there is with the default grammar? 
> 
Post Reply
about | contact