VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



voice recognition/speech recognition program using microsoft sapi sdk

by changchyi (1 Submission)
Category: Sound/MP3
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Thu 13th September 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

voice recognition/speech recognition program using microsoft sapi sdk

API Declarations


microsoft speech api sdk version 4. It is downloadable at the
site www.o2a.com/SpeechDownload.htm (download the 40MB sapisdksuite)
You can also get the version 5 at microsoft web site, but the version
5 do not support win95 and the memory requirement is quite high.
After the download and installation, goto start->program and click
microsoft voice. This will configure your microphone setting.
At last, open vb and load in the component "microsoft direct speech
recognition(xlisten.dll) "

Rate voice recognition/speech recognition program using microsoft sapi sdk



'By using phrasefisnish event, you can do anything on your computer
'by just using your voice.

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.GrammarFromString "[Grammar]" + vbNewLine + _ 
    "type=cfg" + vbNewLine + _ 
    "[<start>]" + vbNewLine + _ 
    "<start>=red" + vbNewLine + _ 
    "<start>=blue" + vbNewLine + _ 
    "<start>=green" + vbNewLine 
DirectSR1.Activate 
End Sub
 

Download this snippet    Add to My Saved Code

voice recognition/speech recognition program using microsoft sapi sdk Comments

No comments have been posted about voice recognition/speech recognition program using microsoft sapi sdk. Why not be the first to post a comment about voice recognition/speech recognition program using microsoft sapi sdk.

Post your comment

Subject:
Message:
0/1000 characters