PDA

Click to See Complete Forum and Search --> : Using Speechlib


kloplop321
Dec 24th, 2007, 12:07 AM
Some of my old code that I used a while back(which in the old executable) still works, however now It will not work at this date when compiling, as I wish to use it with some slight differences.

this is just a snipit of the code

Public WithEvents RC As SpeechLib.SpSharedRecoContext 'SpSharedRecoContext
Public myGrammar As SpeechLib.ISpeechRecoGrammar
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
RC = New SpSharedRecoContext 'ERROR here
myGrammar = RC.CreateGrammar
myGrammar.DictationSetState(SpeechRuleState.SGDSInactive)

I've tried compiling on the same machine(previously reformatted), and a newer computer(Vista), which give two different errors when running

The error on XP gives "Creating an instance of the COM component with the CLSID{47206204-5ECA-960F-00C04F8EE628} from the IclassFactory failed due to the following error: 8004503a"
The error on the Vista PC gives some message "speech recognition could not start because the language configuration is not supported"

This is really aggravating me as this SHOULD work.

Hack
Dec 24th, 2007, 04:00 AM
What was it orginally compiled under? XP?

kloplop321
Dec 24th, 2007, 09:35 AM
yes, it was XP, however which service pack, I am unsure of.