I m developing an c# project based on voice recognition. I want to recognize words in Indian English accent so for that i thought for lexicon & then adding pronunciations in that file but I m not getting how to add a lexicon in my project & how to create a lexicon?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Can we recover audio from MFCC coefficients?
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
Lexicons aren't exposed via System.Speech.Recognition, unfortunately. You can access lexicons using the SpeechLib automation interface to SAPI, though; the object you want to create is SpLexicon.
Note that System.Speech.Recognition will automatically load any user lexicons, so you can have a separate app to build the lexicon and your reco app can continue to use System.Speech.Recognition.
Also, if you're using a command & control grammar, you should specify pronunciations directly; for example, the SrgsToken class allows you to explicitly specify a pronunciation for the word. (Unfortunately, I can't remember how to do this with
System.Speech.Recognition.GrammarBuilder
, but it is possible.)