Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Speech Recognition With VBA

76 views
Skip to first unread message

basem

unread,
Feb 26, 2010, 11:04:01 PM2/26/10
to
Hello Everyone,

I am trying to use speech recognition with VBA in different programs to get
them to perform certain operations based on voice commands...

No speech recognition is happening, even though I have been trying it using
simple commands like:

under form_Initialize:

Grammar = "[Grammar]" & vbCrLf & _
"langid = 1033" & vbCrLf & _
"type=cfg" & vbCrLf & _
"[<Start>]" & vbCrLf & _
"<start>=Notepad" & vbCrLf & _

DirectSR1.GrammarFromString Grammar
DirectSR1.Activate

under DirectSR1_PhraseFinish:

If Phrase = "Notpad" Then
Shell "notepad.exe", vbMaximizedFocus
Else
MsgBox "oops, no notepad?"
End If


No response at all to the speech and no recognition.

I would appreciate so much any help.

Thanks

Basem

0 new messages