Click here to Skip to main content
13,088,846 members (59,467 online)
Rate this:
Please Sign up or sign in to vote.
See more:
How to use voice recognition using speechrecognizer() in multiple forms in 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 20-Mar-13 21:21pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.170813.1 | Last Updated 21 Mar 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100