Sphinx
09-13-2003, 05:38 PM
i have a working speech recognition prgoram
Dim SpeechGrammer As String
SpeechGrammer = "[Grammar]" & vbCrLf & _
"langid = 1033" & vbCrLf & _
"type=cfg" & vbCrLf & _
"[<Start>]" & vbCrLf & _
"<start>=What is my name?" & vbCrLf & _
vcrvoice.GrammarFromString SpeechGrammer
vcrvoice.Activate
right now it has one command, "What is my name?"
I want the user to be able to add commands while using the program. How can I "add" to the grammar list. Ive tried doing speechgrammer = speechgrammer & vbcrlf & "<start>=" & newword & """
but it isnt working.
PLEASAASE HELP ASA{!!!
thanks
Dim SpeechGrammer As String
SpeechGrammer = "[Grammar]" & vbCrLf & _
"langid = 1033" & vbCrLf & _
"type=cfg" & vbCrLf & _
"[<Start>]" & vbCrLf & _
"<start>=What is my name?" & vbCrLf & _
vcrvoice.GrammarFromString SpeechGrammer
vcrvoice.Activate
right now it has one command, "What is my name?"
I want the user to be able to add commands while using the program. How can I "add" to the grammar list. Ive tried doing speechgrammer = speechgrammer & vbcrlf & "<start>=" & newword & """
but it isnt working.
PLEASAASE HELP ASA{!!!
thanks