Voice recognition does not work

0

Recently I formatted my notebook and had to reinstall everything, but now my TCC project is in error, which I did not have before.

In this 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 required id recognition found.

Here is the print of the installed language ....

    
asked by anonymous 22.05.2016 / 18:07

2 answers

3

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

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

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

If none works, check the framework documentation.

    
22.05.2016 / 23:59
2

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

Whenever you encounter an error, check documentation to better understand what happens.

    
22.05.2016 / 18:28