Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to use voice recognition using speechrecognizer() in multiple forms in vb.net 2008 for XP. Voice recognition in a single form is working properly but in case of multiple form when I am trying to change the form I am getting a error as follows:

Unable to cast COM object of type 'System.Speech.Internal.SapiInterop.SpSharedRecognizer' to interface type 'System.Speech.Internal.SapiInterop.ISpRecognizer'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{C2B5F241-DAA0-4507-9E16-5A1EAA2B7A5C}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).


Thank you in advance regarding any help in this topic...
Posted

1 solution

Looks like you use System.Speech.Internal.SapiInterop.SpSharedRecognizer in one form, and System.Speech.Internal.SapiInterop.ISpRecognizer in another form. Why do you do so? Just use the same type of recognizer in all your forms.
 
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