Wrox Programmer Forums
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 1st, 2006, 02:00 PM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 154
Thanks: 0
Thanked 0 Times in 0 Posts
Default Speech Recognition

Hi,

I'm trying to do a simple Speech Recognition which from the examples I found online basically goes along the lines of:

Install actcnc.exe which setup your headphone volume and test your mic (all fine & it repeats what I say at the end of the setup)

Then I created a new VB6 project, added Microsoft direct Speech Recognition + Microsoft direct text to speech - added the 2 controls on the form then use the following code:

Private Sub Form_Load()

    
     Dim SpeechGrammer As String
    
     SpeechGrammer = "[Grammar]" & vbCrLf & _
                                         "langid = 1033" & vbCrLf & _
                                         "type=cfg" & vbCrLf & _
                                         "[<Start>]" & vbCrLf & _
                                         "<start>=John" & vbCrLf & _
                                         "<start>=1" & vbCrLf & _
                                         "<start>=5"
    
     vcrVoice.GrammarFromString SpeechGrammer
     vcrVoice.Activate
    
     spkSpeak.Speak "Hello. What is your name?"
End Sub

and

Private Sub vcrVoice_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)
             spkSpeak.Speak "Hello " & Phrase
End Sub

and obviously this isn't working :(

Anyone got a working VB6 I could download or can explain what I missed Thanks.
 
Old July 5th, 2006, 08:16 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

dear Mantis, "and obviously this isn't working" is a very loose desciption of the problem... :) can you be more specific? what is not working? do you have compilation problems? run time errors? wrong results?
 
Old June 2nd, 2011, 05:10 AM
Registered User
 
Join Date: May 2011
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Lightbulb

If you need only a program here is a link: http://www.voip-sip-sdk.com/p_118-ho...-ivr-voip.html

Hope this helps.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Speech recognition in visual basic tiyyob VB How-To 1 June 2nd, 2011 05:09 AM
Face Recognition using VC++ akshat_malviya Visual C++ 2 December 21st, 2009 02:50 PM
I need help with pattern recognition jazokita Pro Java 2 February 8th, 2009 05:34 PM
speech recognition C# soso_jaw C# 0 July 13th, 2006 08:21 AM
text recognition vb certified VB How-To 0 July 1st, 2005 01:31 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.