Results 1 to 4 of 4

Thread: dll for speech recognition

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Location
    USA
    Posts
    74

    Lightbulb 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)
    Thanks
    Manju

  2. #2
    Fanatic Member crispin's Avatar
    Join Date
    Aug 2000
    Location
    2 clicks west of a Quirkafleeg...Cornwall, England
    Posts
    754
    Crispin
    VB6 ENT SP5
    VB.NET
    W2K ADV SVR SP3
    WWW.BLOCKSOFT.CO.UK

    [Microsoft Basic: 1976-2001, RIP]

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Location
    USA
    Posts
    74
    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.
    Thanks
    Manju

  4. #4
    sunnyl
    Guest
    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
  •  



Click Here to Expand Forum to Full Width