| ||||||||||||||
| ||||||||||||||
|
||||||||||||||
SapiWizard: A SAPI-enabled AppWizardI finally got fed up of copy-and-pasting code between SAPI applications and always setting up the XML settings, so I wrote this rather cool AppWizard that will set everything up for you. It is a standard MFC AppWizard with an additional step:
The AppWizard sets up all the XML build commands and resources (called IDR_SAPI_RULES) and adds comments if asked to. The initial XML grammar top-level rule is called VID_MainRule and simply uses the word "Placeholder". If the speech handler is added, it will pop up a message box if this rule is triggered. Nothing fancy, but allows you to run the AppWizard, compile the program and test to see whether SAPI is working.
v1.10Added support for microphone and user training. Any SAPI project now requires a Full Build to be performed when the project is first compiled. The project will tell you it can't compile if you try a normal build. This is just to get round a Visual Studio quirk.Only handlers are created for the training, not buttons/menu items (this may be a future feature). Voice handlers are created, allowing the user to say "Display microphone/user training" (Display is optional). This is obviously all changeable within the XML.
Future ImprovementsHere are some ideas I might implement in the future:
InstallationInstallation is simple. Just download the file at the bottom of this page and unzip it to:C:\Program Files\Microsoft Visual Studio\Common\MSDev98\TemplateOr the equivalent on your hard drive. Open up MSDev and select "New, Projects, SapiAppwizard" and you're on your way!
Last Updated: 26/06/2002 Article content copyright © James Matthews, 2002.
|
|
|||||||||||||
All content copyright © 1998-2007, Generation5 unless otherwise noted.
- Privacy Policy - Legal - Terms of Use -