speech recognition program using microsoft speech api sdk
speech recognition program using microsoft speech api 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 speech recognition program using microsoft speech api sdk
(1(1 Vote))
'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
speech recognition program using microsoft speech api sdk Comments
No comments yet — be the first to post one!
Post a Comment