Sample Speech Recognition Engine (SAPI 5.3)
Sample Speech Recognition Engine
The sample speech recognition (SR) engine demonstrates the design, compilation, installation, and testing for engines. The following is basic information you should know about the SR sample engine:
- It is not necessary to compile the sample SR engine project (sreng.dsp) to install the sample SR engine (sreng.dll). It is installed with the Speech SDK 5.3.
- The path name is: C:\Program Files\Microsoft Speech SDK 5.3\bin\sreng.dll (if you install the SDK under C:\Program Files).
- The C++ project file C:\Program Files\Microsoft Speech SDK 5.3\Samples\CPP\Engines\SR\sreng.dsp.
How to Register the Sample Engine dll from the Command Line:
Although applicable to different engines, this demonstration uses the sample sreng.dll. You will need to register the engine with the operating system. At the command line type:
regsvr32 C:\Program Files\Microsoft Speech SDK5.0\bin\sreng.dll
After the .dll registration process, the sample SR engine is available on the current computer.
How to Set the Sample Engine to the Default Engine
- In Control Panel, double-click the Speech icon.
- On the Speech Recognition tab, select the SAPI Developer Sample Engine from the list of available engines.
- Click OK.
Sample Engine Expected Results
The sample engine randomly generates context-free grammar (CFG) recognition results based on the CFG grammar you select. The sample engine will also generate other events, such as interference and requestui etc.
Sample SR engine notes
- The engine does not perform the recognition based on an acoustic or language model. Instead, it retrieves the CFG information from SAPI and constructs random results.
- The sample engine provides a basic idea about how to develop an SR engine to interact with SAPI.
- The sample engine does not pass the compliance tests.
- If you experience unexpected results for the real SR activity, make sure that the sample engine is not in use and that the sample engine has not been set as the default engine.