c# - SpeechRecognitionEngine recognizers -


i downloaded fr-fr runtime language pack can recognize french speech through program.

however, program throws error

additional information: no recognizer of required id found.

at

speechrecognitionengine recognizer =      new speechrecognitionengine(new system.globalization.cultureinfo("fr-fr")); 

en-us , en-gb works because pre-installed system, installed these new language packs still throwing exception.

also, if helps, when do

foreach (var x in speechrecognitionengine.installedrecognizers()) {     console.out.writeline(x.name); } 

it prints

ms-1033-80-desk

edit: not possible duplicate because isn't having no recognizers installed, it's c# sapi not seeing have installed pack current language

i able work... there step involved.

since you're using system.speech, uses installed desktop speech recognition comes windows. error you're getting not because don't have language installed, because didn't install speech recognizer language.

so, head on over setting > time , language > region , language (which installed language from). after install language, select language, , click 'options'. should see options download language pack, spell checking, , 1 we're interested in, speech. click download, , wait download/install finish.

once it's done, won't notification, can go settings > time , language > speech , see installed recognizers there, or can go settings > speech recognition > advanced speech options see same list.

now when run program, should work. btw, if want see installed speech recognizers in code, use instead:

foreach (var x in speechrecognitionengine.installedrecognizers())             {                 console.writeline(x.culture.name);                } 

you code when asking recognizers name, want culture's name. (as saw, ms-1033-80-desk corresponds en-us. reference, fr-fr ms-1036-80-desk).


Comments

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -