Results 1 to 6 of 6

Thread: Speach Recognition

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2001
    Location
    Classified
    Posts
    234

    Speach Recognition

    I was curious if anyone had found any tutorials that use Microsoft's DirectSR (Direct Speach Recognition).

    I found one, but it dosent work... The author of the tutorial seems to be avoiding any emails he gets about it as well. It can be found here...

    http://www.vbweb.co.uk/show/1598/1/

    Do any of you know where i can get a working tutorial? Or at least a downloadable example?
    My ICQ Status: (85634850)

    Seriously Sick Tshirts

  2. #2
    Megatron
    Guest
    Add the following to a Form with a DirectSR and DirectSS control.

    Try speaking "hello" or "bye" into your mic. You should get a response back.
    VB Code:
    1. Private Sub DirectSR1_PhraseFinish(ByVal flags As Long, ByVal beginhi As Long, ByVal beginlo As Long, ByVal endhi As Long, ByVal endlo As Long, ByVal Phrase As String, ByVal parsed As String, ByVal results As Long)
    2.  
    3. If Phrase = "hello" Then
    4.     Phrase = ""
    5.     DirectSS1.Speak "Hi to you too."
    6. End If
    7.  
    8. If Phrase = "bye" Then
    9.     Phrase = ""
    10.     DirectSS1.Speak "goodbye."
    11. End If
    12.  
    13. Text1.Text = Phrase
    14.  
    15. End Sub
    16.  
    17.  
    18. Private Sub Form_Load()
    19.  
    20. ' The following are words that the Engine will reconize
    21. DirectSR1.GrammarFromString "[Grammar]" + vbNewLine + _
    22.          "type=cfg" + vbNewLine + _
    23.          "[<start>]" + vbNewLine + _
    24.          "<start>=hello" + vbNewLine + _
    25.          "<start>=bye" + vbNewLine
    26. DirectSR1.Activate
    27.  
    28. End Sub

  3. #3
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    not to be a smart a$$ (cause i am def not smart)

    but it is speech recognition... not speach..

    but anyways.. since i guess i was being a smart a$$...
    download the speech sdk from ms.com

    download the SDK here
    http://download.microsoft.com/downlo...peechsdk51.exe

    it has sample code and sample projects and pretty much explains everything you could want to know about speech recognition from MS

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Feb 2001
    Location
    Classified
    Posts
    234
    Megatron, that example dosent seem to work ether, perhaps it is my sofware configuration.

    I can hear myself speak clearly, so the mic isent the fault. I can use Game Commander to control my Mech in mechwarrior.

    Is there a specific version of DirectSR i need for these to work? The version i have came with Windows 2k. (sp2)
    My ICQ Status: (85634850)

    Seriously Sick Tshirts

  5. #5

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Feb 2001
    Location
    Classified
    Posts
    234
    the 'DirectSR1_PhraseFinish' function is NEVER called... ;/

    I downloaded the SDK, and it still dosent do anything for me.
    my mic is working, i can hear myself in the speakers, and it works in other games like Halflife and tribes2,

    What could it be?
    My ICQ Status: (85634850)

    Seriously Sick Tshirts

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