Click here to Skip to main content
15,889,838 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i'm trying to create a voice recognition at c#. But when i press the button at 1,2,3 i get that error :

UnauthorizedAccessException was unhandled
Access denied. (exemption from HRESULT: 0x80070005 (E_ACCESSDENIED))

XML
using System.Speech.Recognition;
....

   private void button1_Click(object sender, EventArgs e)
   {
1)     recognizer.SetInputToDefaultAudioDevice();
2)     recognizer.LoadGrammar(new DictationGrammar());
3)     recognizer.RecognizeAsync(RecognizeMode.Multiple);

}
....

can someone help me??
Thanks !!

(WIN 7 , .Net Framework 4.5)
Posted

Try running this program as an administrator.

You are accessing a resource for which you might need additional privileges.
 
Share this answer
 
i had to change the language of the system
Now works !!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900