Results 1 to 5 of 5

Thread: Voice Recognition Help

  1. #1
    Guest

    Question

    Hi all,
    I'm new to these forums and very new to VB I'm currently writing an app that requires Voice recognition I only require two commands:

    Play
    Stop

    I downloaded the Microsoft Voice Recognition Software at
    http://msdn.microsoft.com/workshop/i...agentdl.asp#sr

    And I don't have a clue how to use It I would really Aprecitte It if someone could point me in the right direction and maybe a bit of code
    Thanks,

  2. #2
    Guest
    Here is a short example, using a vocab file

    Code:
    'just run the program and say either 1, 2 or 3 and the number
    'should appear in the textbox
    
    Option Explicit
    
    'this event fires when DirectSR1 detects a end of a phrase,
    'the sub itself passes the variable Phrase - which contains
    'the word that was recognised, in this case, the word
    'that is recognised is put into Text1
    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)
        Text1.Text = Phrase
    End Sub
    
    Private Sub Form_Load()
           
        DirectSR1.GrammarFromFile (App.Path & "\words.txt")
        'this line of code tells the program to load the file
        'words.txt from its working directory.
        'the words stored in this file are the words that the
        'Xlisten.dll will recognise.
        
        
        DirectSR1.Activate
        'the DLL is activated and it starts to 'listen' for words
        'that it recognises
    End Sub
    and inside the text file is this:

    [Grammer]
    type=cfg
    [<start>]
    <start>=1
    <start>=2
    <start>=3

    Hope this helps,
    Sunny

  3. #3
    Guest
    Where Is this grammer file ?

  4. #4
    Guest
    Sorry Im a real newbie
    It says variable not defined
    Please help

  5. #5
    Guest

    Unhappy

    Please Help I cant find anything on it

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