hi
i would like to know if and how i can put voice recognition in my vb
program.
the program works with forms and i want to change from one form to
another displaying info on pages
thanks for your help
mi5hq ( joke )
You can add voice recognition and text to speech to your program using the
Microsoft Speech SDK (software developer kit). You can download version
4.0a from here:
While SAPI is a great program, it is used for speech recognition
rather than voice recognition... It only converts speech to text, without
recognizing who the speaker is.
Wow this forum is a big help tnx to all of you well i am student who
wants to create a program that will recognize voice so i think this can
really help me... =]
Very nice site...I found what i was looking for...
but I have a question and i'll be so happy if someone could help me...
I made my software with speech and now i have to make the setup package...what libraries i have to include in the setup package? thank you so much..bye Daniel
I have installed Microsoft Speech Recognition 4.0(SAPI4SDKSUITE.exe) in my windows 98. I followed a lot of tutorials including above tips but still there is no response when i run the program. I think the DirectSR_PhraseFinish procedure is simply ignore or bypass when it run. And second thing i discover; when i open setting>control panel>speech in speech window there is a button for training but when i click this button there is nothing change, there is no window appear (as above window). Is it normal? There anybody who can help to solve my problem?
I m a IT student and crazy about programing <vb>
I like this site so much
From:
Tony
Date:
Tuesday, July 13, 2004 at 19:24:45
Comments:
This is amazing! I am only 16 and i've only just taken my first VB.Net cert.
Therefore, being unexperienced, I thought it might be difficult to find any VB compatible voice recognition software that would be easy to use. So I decided I would check it out anyways, and man it's so simple, but so useful. Thank you so very much!
X10 is a way of controlling household devices by sending signals
through the power cables. The X10 homepages are here: www.x10.com
and www.x10.co.uk.
Another explanation can be found here:
i'm thinking of doing a thesis using voice recognition. it's quite simple, i think, using voice commands to switch lights in houses.. do you think it's possible?
Reply:
If you able to control the lights using a technology such as X10 with
Visual Basic 6.0, then what you want to do should be possible.
i want to know wheteher i can use more than one directsr control.how to activate traindlg and aboutdlg.i am midway in my project and helpless.please respond and help
i am downloading the sdk 5.1 -- hopefully il learn how to use it - if any1 can send me an example of very simple voice recognition that'd be cool -- thanks
Hi...I am making a speech recognition program whcih recognises words which i only program it to. E.g. If a guys says Yuko or Hello it will only print (Y) or (H) not the whole word and it will add +1 to (Y) or (H). Thisprogram is suppose to be a Automatic Judo score board where The core boeard will recognise terms used by refrees in judo matches and apply it.
Please Help.
I am from India and i am developing the s/w for security system for multi story building where through telephone security people will call the
people(who are staying in the flats)and i want to add voice and video conferencing features in that through computers.
i can't get it to work! this is what my code looks like:
Option Explicit
'-------------------------------api declares-----------------------------------
Private Declare Function ShellExecute Lib "shell32.dll" _
Alias "ShellExecuteA"
(ByVal hwnd As
Long, ByVal lpOperation As
String, _
ByVal lpFile As
String, ByVal lpParameters As
String, _
ByVal lpDirectory As
String, ByVal nShowCmd As
Long) As Long
'-------------------------------------------------------------------------------
Private Sub Command1_Click()
Select Case Command1.Caption
Case "Disable"
DirectSR1.Deactivate
Command1.Caption = "Enable"
Label1 = "Disabled"
Case "Enable"
DirectSR1.Activate
Command1.Caption = "Disable"
Label1 = "Ready"
End Select
End Sub
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)
Case "Media Player:"
sFile = "C:\Program Files\Windows Media Player\mplayer2.exe"
noth = ShellExecute(0, "OPEN",
sFile, "", "", 1)
End Select
If Phrase <> ""
Then
Label1.Caption = "Matched word is " & Phrase
Else
Label1.Caption = "No word matched"
End If
End Sub
Private Sub Form_Load()
Dim totaldata As String
'define configuration
'[Grammer], set language to english (1033)
'[<Start>], define the words we are looking for
totaldata = "[Grammar]" & vbCrLf & _
"langid = 1033" & vbCrLf & _
"type=cfg" & vbCrLf & _
"[<Start>]" & vbCrLf & _
"<start>=Notepad" & vbCrLf & _
"<start>=Volume" & vbCrLf & _
"<start>=Media Player" & vbCrLf
DirectSR1.GrammarFromString (totaldata)
DirectSR1.Activate
End Sub
it's got a label (label1) and a command button (command1) present on the form but for some reason it just never enters the phrase finish event...technically this code SHOULD work...does anyone know if maybe i've done something wrong with the settings of my project??
hi,
i want to know whether this would help in doing a program to recognize a particular user, instead of using the method of username,password to login?
ie,will it be able to recoginize the actual voice of the particular user or can just get the text from whatever is spoken.
I need to monitor the microphone input level. When a voice is detected on the microphone, I need to start the recording of that voice.
Is there any examples of code in VB6 that will allow me to accomplish this task?
How can I use the Voice-Recognition functionality to check the user's voice as a password?
Is it possible??
Thanks
From:
Blood-Butt
Date:
Wednesday, September 24, 2003 at 17:58:55
Comments:
ive installed the speech program (V5.1) but how come i dont have the components for using this in the Project>Components... tab?
Can ne one help me plz?
Reply:
With version 5.1, you need to set a reference to the Microsoft Speech
Object Library in order to be able to use it. Version 4 had items
in the Components list, but not 5.1. See the sample projects for
how to use the Library.
im planning a parallel port project... with voice actiavted commands to light up th leds n the pc relay card... so basically its a port controlling thing... what are the other nice options i have...
i want to use voice recognition with vb .Can someone pls gimme the min . req for voice recognition. during design stage.any other bright ideas or for more info onthe project /details pls reply to my email..thnx ..
keep clicking,
Bosky
This website is absolutely great. And thanks to all those people who are helping others by sharing their knowledge. I am a senior in college and going to graduate next semester. I was surfing the net to look for some help like, how to send email from visual basic, and how to build a voice recognization application. I have looked almost everyone's comments above, I hope everyone has solved their problems. But if anyone can solve my problem please do let me know by responding on this site or by email. I not a very good programmer but I am trying my best to learn how to program. Please, if anyone knows how to solve the problems I have mentioned above, do let me know.Your help will be always appreciated. Like someone said, when you share money, the lesser it gets, when you share knowledge the bigger it gets. God Bless you all.
I think Mailini can help me with my problem.
Please dear Martin, send me his email address or any codes which can help me integrate voice command into my app.
Guess this is a life saviour page for those of us who plan to add voice command feature in our project app.
I'd really be grateful if someone can send me source code on how to integrate voice command step by step.
Am downloading SDK version 4
This is really helpfull. I already have all the files needed, would it be possible to get just the example program to figure out how to use it please?
Thanks, it would be really appreciated!!!
Reply:
If you have downloaded the SDKs, they should include demo projects and
programs.
Hi evverybody,
I am designing an"speech commanded MP3 player"in vb and
require that system must respond to my commands & control various buttons such as: play
rew
fwd,pause etc
I would be really thankful if anybody could help me out in my project.
Thankui
im new in voice command/recognition being added to a VB application. where can i find the documentation about this. can you give me sample codes (an easy one) so that i can start with it. anyone can send. thanks..
I am posting a small sample of Speech Recogntion, this was just the early stages of a program i am building that will completely automate my computer to voice commands, it took a little trial and error but i hope it helps ppl with thier own speech recongtion programs.
START A STANDARD PROJECT, ASS A TEXT BOX, NAME IT txtCommand.....THEN ADD THE SPEECH COMPONMENT AND ADD IT TO THE FORM, NAME IT
DirectSR....
Private Sub DirectSR_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)
txtCommand.Text = Phrase
Select Case Phrase
Case Is = "Launch Notepad"
retval = Shell("C:\WINDOWS\notepad.exe")
Case Is = "Launch Web Browser"
retval = Shell("C:\Program Files\Internet Explorer\IEXPLORE.EXE")
Case Is = "Launch Visual Basic"
retval = Shell("C:\Program Files\Microsoft Visual Studio\VB98\VB6.exe")
Case Is = "Launch Calculator"
retval = Shell("C:\WINDOWS\calc.exe")
I am doing my project on voice recognition please send me the code in vb to understand about adding voice recogntion in vb. Also whether we can interact with DOS using this facility and speak command and type it at command line in DOS environment by running at back end the vb code. Please help me out.
hi people..this is gr8 ...all u guys seems to be very helpful ...well i work for a medical firm here in
indiana,usa. and we have a appliaction which is done in visual basic and with mouse click events(command button)..i would love to change that application into a voice recognisation application..where instead of pressing the buttons in the form at run time you could talk to it and make the event occur......for example ..in my form if i have a command button A which occurs an event when
pressed...i just wanna say "press buttom A" and by application should voice recognise what i said and should press Button A ...u know what i mean .....example i wanna navigate menus in vb using voice
reog...
u just have to say it and it triggers the event or presses the button
example
say "menu" --->it shows the sub menu below it
edit
copy
paste
delete
and now when i say "copy" it should recognise the word or command and should do the copy function....and so on
this is my request for all the good people here to help me out with your ideas and suggestions and little source code will be greatly appreciated..
I have implemented MS Character Agent and MS Speech SDK, it tries to recognise voice commands, but problem is, not all commands are recognized, and involves huge amount of coding. I hope the SDKs' listed above will help.
i have made a visual basic application.now i want to integrate voice into it asuch that whatever
query(limited) i have i speak it out in words & the system should be able to respond me back accordingly. please tell step by step. i have already downloaded sdk5.1 & installed on my system.thanks
please tell me how to change the voice in voice to text control
Reply:
Here is a procedure that will add the voices into a ComboBox or a
ListBox:
Sub ListVoices(Lst As
Object, Lips As Object)
engine = Lips.Find("Mfg=Microsoft;Gender=1")
Lips.Select engine
For i = 1 To Lips.CountEngines
ModeName = Lips.ModeName(i)
Lst.AddItem ModeName
Next i
Lst.ListIndex = Lips.CurrentMode - 1
End Sub
Use this code to change the voice when the ComboBox or ListBox
selection changes:
Private Sub Combo1_Click()
TextToSpeech1.CurrentMode = Combo1.ListIndex + 1
End Sub
if anyone wants sample code for vb to write speech recognition apps using VR 4.0 SDK then let me know. I have written several apps that control external software
aswell. A knowledge of api calls is very important for that, but for internal prog commands its easy
the screenshot is quite implressive. but i really want to know how to code the operation itself.havin dictating a certain name/word then it shall be displayed in the given textbox of a certain form.i really need help.thanks
i m trying to intergrate the Voice recogniton part into an application that uses the Text-to-speech as well..can u show me step by step how to do the voice recognition part and sample codes of the that part..?? do i need to download the microsoft
SDK??...TQ!!
My name is vinodh,i'm from india,martin,there is an exbition in our school,i'm participating in it,i had palnned 2 exibit voice recog software (created through VB),i have vb-6 loaded in my pc and voice recog engine is not loaded in it,i have 2 download from net but it was more than 3o m.b,does it voice recog will be in vb7 also send me some dashing visual basic project with source code,plezzzzzzz
how to implement voice recognition in visual basic. I need the code to develop my application. I tried with microsoft direct speech recognition. but it is not working. help me please.