Voice recognition does not work

Asked

Viewed 1,069 times

0

I recently formatted my laptop and had to reinstall everything, only now my TCC project is error that in the case before had not had.

In that code snippet:

SpeechRecognitionEngine sre = new SpeechRecognitionEngine(new CultureInfo("pt-BR"));

The Error that appears:

An unhandled Exception of type 'System.Argumentexception' occurred in System.Speech.dll

Additional information: No ID recognition required found.

Here is the installed language print.... Aqui e o print da linguagem instalada

  • simple question to another language it works?

  • I didn’t understand your question...

  • if you put "en-US" your program compiles without errors ?

  • It doesn’t work, I’ve tried :/

  • of course I assume you have installed Speechplatformruntime and the languages you want as support ....

  • Yes, I edited there and put the print

  • The operating system is the same or you changed?

  • it’s the same, otherwise I’m mistaken I just switched version of it, but both is Windows 10

  • pq vc has 64bits and 32bits installed? is this not generating any conflict !?

  • I can try to leave only one, is that in desperation I installed all possible. And the final bankroll of tcc is coming, and I need to fix it soon

  • I left a version, but the error still persists

  • 1

    Will this answer help you?

Show 7 more comments

2 answers

3


There are some solutions that solve this problem. Among the most used:

1 - Check the version of . NET Framework you are using and see in the DLL documentation if it supports the same.

2 - Add a reference (Via DLL) to the tool framework you want to use.

If none works, check the framework documentation.

2

I cannot say exactly how to solve the problem, but the error occurs because some component is missing, in this case what makes the recognition in Portuguese, which clearly does not come by default in Windows. See what you need to install.

Whenever you find an error, see documentation to better understand what happens.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.