Click here to Skip to main content
11,709,220 members (70,459 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: VB.NET
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
0 Sergey Alexandrovich Kryukov 565
1 OriginalGriff 244
2 Maciej Los 225
3 Peter Leow 219
4 Mika Wendelius 160
0 OriginalGriff 9,348
1 Sergey Alexandrovich Kryukov 8,727
2 CPallini 5,189
3 Maciej Los 4,991
4 Mika Wendelius 3,856

Advertise | Privacy | Mobile
Web04 | 2.8.150819.1 | Last Updated 21 Mar 2013
Copyright © CodeProject, 1999-2015
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