|
-
Nov 23rd, 2001, 05:40 AM
#1
Thread Starter
Lively Member
dll for speech recognition
Hi,
can anyone tell me If there is a way I can make a dll of the speech recognition functions. When written in form on form load when a word is spoken all these functions get triggered automatically from Start Sound and result phrase is got either in RC_FalseRecognition or RC_Recognition and ends at RC_SoundEnd.
How can I have the same written in a class module so that can make it a dll and have it triggerd when somehting is spoken??
Private Sub RC_FalseRecognition(ByVal StreamNumber As Long, ByVal StreamPosition As Variant, ByVal Result As SpeechLib.ISpeechRecoResult)
Private Sub RC_Recognition(ByVal StreamNumber As Long, _
ByVal StreamPosition As Variant, _
ByVal RecognitionType As SpeechLib.SpeechRecognitionType, _
ByVal Result As SpeechLib.ISpeechRecoResult)
Private Sub RC_StartStream(ByVal StreamNumber As Long, ByVal StreamPosition As Variant)
myreco = Val(StreamNumber)
Private Sub RC_RecognizerStateChange(ByVal StreamNumber As Long, _
ByVal StreamPosition As Variant, _
ByVal NewState As SpeechLib.SpeechRecognizerState)
' Sound End event handler
Private Sub RC_SoundEnd(ByVal StreamNumber As Long, _
ByVal StreamPosition As Variant)
' Sound Start event handler
Private Sub RC_SoundStart(ByVal StreamNumber As Long, _
ByVal StreamPosition As Variant)
' Recognition For Other Context event handler
Private Sub RC_RecognitionForOtherContext(ByVal StreamNumber As Long, _
ByVal StreamPosition As Variant)
' Phrase Start event handler
Private Sub RC_PhraseStart(ByVal StreamNumber As Long, _
ByVal StreamPosition As Variant)
' Adaption event handler
Private Sub RC_Adaption(ByVal StreamNumber As Long, ByVal StreamPosition As Variant)
' Audio Level event handler
Private Sub RC_AudioLevel(ByVal StreamNumber As Long, ByVal StreamPosition As Variant, ByVal AudioLevel As Long)
' Bookmark event handler
Private Sub RC_Bookmark(ByVal StreamNumber As Long, ByVal StreamPosition As Variant, ByVal EventData As Variant, ByVal Options As SpeechLib.SpeechBookmarkOptions)
' End Stream event handler
Private Sub RC_EndStream(ByVal StreamNumber As Long, ByVal StreamPosition As Variant, ByVal StreamReleased As Boolean)
' Engine Private event handler
Private Sub RC_EnginePrivate(ByVal StreamNumber As Long, ByVal StreamPosition As Variant, ByVal lParam As Variant)
' Hypothesis event handler
Private Sub RC_Hypothesis(ByVal StreamNumber As Long, ByVal StreamPosition As Variant, ByVal Result As SpeechLib.ISpeechRecoResult)
' Interference event handler
Private Sub RC_Interference(ByVal StreamNumber As Long, ByVal StreamPosition As Variant, ByVal Interference As SpeechLib.SpeechInterference)
-
Nov 23rd, 2001, 06:37 AM
#2
Fanatic Member
Crispin
VB6 ENT SP5
VB.NET
W2K ADV SVR SP3
WWW.BLOCKSOFT.CO.UK
[Microsoft Basic: 1976-2001, RIP]
-
Nov 23rd, 2001, 06:49 AM
#3
Thread Starter
Lively Member
Thanks a lot but I got the code of speech recognition, from Microsoft site only. I am using SAPI for SR. But MS has given all speech recognition with the functions' swritten in form load. Any suggestion how i can use them in class modules and have them triggard automatically in their manner.
The functions trigger automatically without any prompts when a sound is heard.
-
Nov 25th, 2001, 02:13 AM
#4
If you want event triggers you should use the DirectSR control instead.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|