|
-
Jul 30th, 2000, 11:56 AM
#1
Thread Starter
Lively Member
Hi friends!
You are so nice that i'm gonna ask you another question (eheh!): how can i implement text-to-voice in a program? And how can i implement voice commands or voice dictation? Does anyone know some dll that could manage this?
Thanks!
-
Jul 30th, 2000, 12:03 PM
#2
Try this.
Code:
TextToSpeech1.Speak Text1
-
Jul 30th, 2000, 12:06 PM
#3
Hyperactive Member
I'd say one of the easiest ways to do both would be to use the MsAgent control. Mack Male is doing an ongoing tutorial on it at http://www.vbsquare.com.
-
Jul 30th, 2000, 12:07 PM
#4
For Voice Recognition, try this. Make a Form with a DirectSR, DirectSS and a TextBox.
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 = "goodbye" Then
Phrase = ""
DirectSS1.Speak "See you later"
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>=goodbye" + vbNewLine + _
"<start>=hello" + vbNewLine
DirectSR1.Activate
End Sub
Try saying "Hello" or "Goodbye" into your microphone and the computer will reply.
-
Jul 30th, 2000, 12:36 PM
#5
Thread Starter
Lively Member
It works! ;-)
Thanks a lot for your help!
-
Jul 30th, 2000, 03:44 PM
#6
Thread Starter
Lively Member
Of course, the text to speech works correctly
but the code for voice recognition does not
work at all; i start the program the i speak in
the microphone but nothing happens...
I use VB6 in italian... what could the problem
be given by?
Tnx
-
Jul 30th, 2000, 04:00 PM
#7
I don't think the language being Itallian has anything do with it. Although, if you have an accent this
can be a problem because the engine will not reconize the words. Try to speak the words, as best you can
in an English accent.
If it still fails, try one or more of the follwoing.
- Make sure that you are using a DirectSR and a DirectSS. There are controls that look similar to them (VCommand and TextToSpeech). Don't get confused.
- Make sure that your microphone is one and works properly
- Make sure that your speakers are on
- Make sure that you speak the words clearly.
- If you have not yet done so, train your Speech Engine.
-
Jul 30th, 2000, 04:52 PM
#8
Hyperactive Member
where are these controls
Where are the controls located? Is it the agent control? It doesn't appear to be since it has only one control.
-
Jul 30th, 2000, 06:11 PM
#9
You can download the Microsoft Speech Engine to get these.
-
Jul 30th, 2000, 06:16 PM
#10
Hyperactive Member
The microsoft agent can be found at http://msdn.microsoft.com/workshop/i...nt/agentdl.asp
if you have not already downloaded the most recent version. It also has the speech recognition engine and several speech engines in several different languages.
-
Jul 30th, 2000, 06:23 PM
#11
-
Jul 30th, 2000, 07:42 PM
#12
The following are different Speech Controls you can use in your project.
- Microsoft Direct Speech Recognition
- Microsoft Text-to-Speech
- Microsoft Voice Commands
- Microsoft Voice Dictation
- Microsoft Voice Text
- Microsoft Voice Telephony
-
Jul 31st, 2000, 07:52 AM
#13
Thread Starter
Lively Member
Sorry for not answering you since now... I didn't get
the email advice...
Well, i think the problem could be given by my (not good) english prononciation... but i didn't train my Voice system... I'll do that and then i'll tell you. Thanks a lot for being so friendly.
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
|