c# - speech-to-text disable windows auto handler and write what i say -
i've started using .net speech-to-text library (speechrecognizer)
while googling , searching site found code sample:
var c = new choices(); (var = 0; <= 100; i++) c.add(i.tostring()); var gb = new grammarbuilder(c); var g = new grammar(gb); rec.unloadallgrammars(); rec.loadgrammar(g); rec.enabled = true; which helped me start. changed these 2 lines
for (var = 0; <= 100; i++) c.add(i.tostring()); to need
c.add("open"); c.add("close"); but, when 'close', speech recognizer of windows closes application!
in addition, there better way recognize speech create own dictionary? user like: "write note myself" , user speak , i'll write.
sorry asking 2 questions @ same question, both seem relevant 1 problem.
you using shared speech recognizer (speechrecognizer). when instantiate speechrecognizer recognizer can shared other applications , typically used building applications control windows , applications running on desktop.
it sounds want use own private recognition engine (speechrecognitionengine). instantiate speechrecognitionengine instead.
disable built-in speech recognition commands? may have helpful info.
microsoft's desktop recognizers include special grammar called dictation grammar can used transcribe arbitrary words spoken user. can use dictation grammar transcription style recognition. see dictationgrammar class , sapi , windows 7 problem
Comments
Post a Comment