VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Voice recognition

by Naeem Akram (3 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 21st December 2005
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Voice recognition

API Declarations


control in your control then double click on this control it will appear on your form
Dim isbnStr as string




Rate Voice recognition



 ' Stop the SR engine to recognize the voice
    DirectSR1.Deactivate
' pass the grammer to SR1 for Recognize
    
    DirectSR1.GrammarFromFile (App.Path & "\" & "Test.txt")
'Test.txt is file u can add all the word in the file

' Start SR engine to recognize the voice
    DirectSR1.Activate

'on the FinishPhrase event of DirectSR1 put this code
isbnStr = Phrase


'Test.txt File will be like this

[Grammer]
type=cfg

[<start>]
<start>=0
<start>=1
<start>=2
<start>=3
<start>=4
<start>=5
<start>=6
<start>=7
<start>=8
<start>=9

Download this snippet    Add to My Saved Code

Voice recognition Comments

No comments have been posted about Voice recognition. Why not be the first to post a comment about Voice recognition.

Post your comment

Subject:
Message:
0/1000 characters