|
-
Mar 20th, 2002, 04:38 PM
#1
Thread Starter
Addicted Member
Speach Recognition
I was curious if anyone had found any tutorials that use Microsoft's DirectSR (Direct Speach Recognition).
I found one, but it dosent work... The author of the tutorial seems to be avoiding any emails he gets about it as well. It can be found here...
http://www.vbweb.co.uk/show/1598/1/
Do any of you know where i can get a working tutorial? Or at least a downloadable example?
-
Mar 20th, 2002, 04:46 PM
#2
Add the following to a Form with a DirectSR and DirectSS control.
Try speaking "hello" or "bye" into your mic. You should get a response back.
VB Code:
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)
If Phrase = "hello" Then
Phrase = ""
DirectSS1.Speak "Hi to you too."
End If
If Phrase = "bye" Then
Phrase = ""
DirectSS1.Speak "goodbye."
End If
Text1.Text = Phrase
End Sub
Private Sub Form_Load()
' The following are words that the Engine will reconize
DirectSR1.GrammarFromString "[Grammar]" + vbNewLine + _
"type=cfg" + vbNewLine + _
"[<start>]" + vbNewLine + _
"<start>=hello" + vbNewLine + _
"<start>=bye" + vbNewLine
DirectSR1.Activate
End Sub
-
Mar 20th, 2002, 04:49 PM
#3
not to be a smart a$$ (cause i am def not smart)
but it is speech recognition... not speach..
but anyways.. since i guess i was being a smart a$$...
download the speech sdk from ms.com
download the SDK here
http://download.microsoft.com/downlo...peechsdk51.exe
it has sample code and sample projects and pretty much explains everything you could want to know about speech recognition from MS
-
Mar 20th, 2002, 05:01 PM
#4
Thread Starter
Addicted Member
Megatron, that example dosent seem to work ether, perhaps it is my sofware configuration.
I can hear myself speak clearly, so the mic isent the fault. I can use Game Commander to control my Mech in mechwarrior.
Is there a specific version of DirectSR i need for these to work? The version i have came with Windows 2k. (sp2)
-
Mar 20th, 2002, 08:18 PM
#5
-
Apr 1st, 2002, 08:10 AM
#6
Thread Starter
Addicted Member
the 'DirectSR1_PhraseFinish' function is NEVER called... ;/
I downloaded the SDK, and it still dosent do anything for me.
my mic is working, i can hear myself in the speakers, and it works in other games like Halflife and tribes2,
What could it be?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|