I am using Windows Dictation Resource kit and I have geneated .dlm and .ngr files of a medical model and now how do I register these dictation topics in Windows 7, I also would like to know if is there a way to directly load them in the program?
相关问题
- Can we recover audio from MFCC coefficients?
- How to know full paths to DLL's from .csproj f
- Importing NuGet references through a local project
- Visual Studio 2019 - error MSB8020: The build tool
- 'System.Threading.ThreadAbortException' in
相关文章
- How to show location of errors, references to memb
- How to embed Google Speech to Text API in Python p
- How to track MongoDB requests from a console appli
- Visual Studio Hangs on Loading UI Library
- How to use Mercurial from Visual Studio 2010?
- Copy different file to output directory for releas
- Edit & Continue doesn't work
- “Csc.exe” exited with code -1073741819
You need to register the topics under the engine GUID key. For US English, the key is
Create a REG_SZ key whose name is the dictation topic name, and whose value is the path to the .dlm/.ngr (both files need to be in the same directory).
For example, if the dictation topic was named "Medical", and you the path was in "c:\medical", then the reg key would be
To specify the dictation topic in code, you just need to specify the topic name when loading the dictation grammar.
For C# (using System.Speech.Recognition), the code looks like this:
In C++, using native SAPI,
If you want your new topic to show up in Windows Speech Recognition, you also need to update
and add a value whose name is the topic name, and whose value is the display value. For example, if your topic is "Medical" and you wanted it to appear as "Medical Dictation", then you would have