|
| SpInProcRecoContext & SpSharedRecoContext |
 |
Wed, 12 Dec 2007 01:05:23 -080 |
Hi,
When I try the next code in Visual Basic all is right:
Public WithEvents RC As SpSharedRecoContext
Public myGrammar As ISpeechRecoGrammar
Private Sub Form_Load()
Set RC = New SpSharedRecoContext
Set myGrammar = RC.CreateGrammar
myGrammar.DictationSetState SGDSActive
End Sub
Private Sub RC_Recognition(ByVal StreamNumber As Long, ByVal
StreamPosition As Variant, ByVal RecognitionType As
SpeechLib.SpeechRecognitionType, ByVal Result As
SpeechLib.ISpeechRecoResult)
Label1.Caption = Result.PhraseInfo.GetText
End Sub
BUT IF I CHANGE THE SpSharedRecoContext BY SpInProcRecoContext, IT
DOESN'T WORK WELL. ANYBODY KNOWS WHY?
|
| Post Reply
|
| Re: SpInProcRecoContext & SpSharedRecoContext |
 |
Thu, 27 Dec 2007 10:15:39 -080 |
Hi,
When you use the InProc recognizer you need to setup additional things like
the audio input device, which is something that is already done in the
shared recognizer case.
Might that explain your problems? If not can you describe a bit more what
problems you are observing?
Heiko
These postings are provided "AS IS" with no warranties, and confer no
rights.
<cus50@hotmail.com> wrote in message
news:d799d980-b3ef-4b78-8c3f-fe24b982233d@o42g2000hsc.googlegroups.com...
> Hi,
> When I try the next code in Visual Basic all is right:
>
> Public WithEvents RC As SpSharedRecoContext
> Public myGrammar As ISpeechRecoGrammar
>
> Private Sub Form_Load()
> Set RC = New SpSharedRecoContext
> Set myGrammar = RC.CreateGrammar
>
> myGrammar.DictationSetState SGDSActive
> End Sub
>
> Private Sub RC_Recognition(ByVal StreamNumber As Long, ByVal
> StreamPosition As Variant, ByVal RecognitionType As
> SpeechLib.SpeechRecognitionType, ByVal Result As
> SpeechLib.ISpeechRecoResult)
> Label1.Caption = Result.PhraseInfo.GetText
> End Sub
>
> BUT IF I CHANGE THE SpSharedRecoContext BY SpInProcRecoContext, IT
> DOESN'T WORK WELL. ANYBODY KNOWS WHY?
>
>
>
|
| Post Reply
|
| Re: SpInProcRecoContext & SpSharedRecoContext |
 |
Tue, 29 Jan 2008 01:51:24 -080 |
thank you!!!!
Now everything works well
But I have another thing, I'm Spanish and I would like to use English
speech recognition in Spanish vista operating system. I have read that
only is possible under vista Ultimate and Entreprise.What could I do
too use English speech recognition with Spanish any vista operating
system?
Thanks in advance!!
On Dec 27 2007, 10:15 am, "Heiko Rahmel [MSFT]"
<heik...@online.microsoft.com> wrote:
> Hi,
>
> When you use the InProc recognizer you need to setup additional things
like
> the audio input device, which is something that is already done in the
> shared recognizer case.
> Might that explain your problems? If not can you describe a bit more what
> problems you are observing?
>
> Heiko
>
> These postings are provided "AS IS" with no warranties, and
confer no
> rights.
>
> <cu...@hotmail.com> wrote in message
>
> news:d799d980-b3ef-4b78-8c3f-fe24b982233d@o42g2000hsc.googlegroups.com...
>
>
>
> > Hi,
> > When I try the next code in Visual Basic all is right:
>
> > Public WithEvents RC As SpSharedRecoContext
> > Public myGrammar As ISpeechRecoGrammar
>
> > Private Sub Form_Load()
> > Set RC = New SpSharedRecoContext
> > Set myGrammar = RC.CreateGrammar
>
> > myGrammar.DictationSetState SGDSActive
> > End Sub
>
> > Private Sub RC_Recognition(ByVal StreamNumber As Long, ByVal
> > StreamPosition As Variant, ByVal RecognitionType As
> > SpeechLib.SpeechRecognitionType, ByVal Result As
> > SpeechLib.ISpeechRecoResult)
> > Label1.Caption = Result.PhraseInfo.GetText
> > End Sub
>
> > BUT IF I CHANGE THE SpSharedRecoContext BY SpInProcRecoContext, IT
> > DOESN'T WORK WELL. ANYBODY KNOWS WHY?- Hide quoted text -
>
> - Show quoted text -
|
| Post Reply
|
|
|
|
|
|
|
|
|
|