speech API

Keltus
02-18-2002, 12:55 PM
hi, I'm making a program that listens for phrases in the microphone and then it triggers certain events based on this

right now, I'm using the grammar compiler from the speech SDK by microsoft but I would like it so that the user could edit an .ini file to edit which phrases he wants to be captured. For example:

in phrases.ini

Run Napster - C:\Windows\Napster.exe
Run Internet Explorer - C:\Windows\IE.exe

etc.

however, the grammar compiler compiles an .xml file and it has to be compiled with the program. So the user would have to compile the program every time he wanted to change the phrases to capture. I would have to include the source and everything with the program too.

this is extremely inconvenient and if anyone knows of a different way, please tell me. I think it would involve not using the grammar compiler but all the MSsamples use the grammar compiler.

thanks for reading my post

Banjo
02-18-2002, 02:44 PM
Why do think that the XML file must be compiled in to the program.

Keltus
02-18-2002, 08:11 PM
well, the MS samples all use a gc.exe which is the grammar compiler. the engine itself requires a .cfg file which is what the grammar compiler spits out after taking in the .xml file

Waxycat
02-19-2002, 07:09 AM
Ack, inis are so inefficient. They're basically interpreted code. But for something like this, I guess it's fine.

Banjo
02-19-2002, 12:00 PM
I must admit to guessing here, but does gc.exe simply encapulsate code to read the XML file and call various Speech API functions. If this is the case then maybe you need to look into working out how to use the API functions for grammer compilation directly.
Just a thought.

Keltus
02-19-2002, 09:33 PM
ah, I found a way to not use the gc.exe. It was real deep in the docs and requires a lot more code, but I think I can work with it.

thanks for the responses

Also, would anyone be interested in this program when it's done? I think it's quite fascinating myself. You will be able to wordprocess, connect to the internet, and run programs with your voice. Maybe I'll put speech into langston's ant too ;) and it uses very little resources, resides in the system tray, and you can customize every single command

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum