Hey ppl, i need some info on speech to text controls and programs. I want to create something thath will recognize the speech and type it into a textbox. Simple as that.
Sample code and links would be GREATLY apreciated.
Thank you,
D!m
Printable View
Hey ppl, i need some info on speech to text controls and programs. I want to create something thath will recognize the speech and type it into a textbox. Simple as that.
Sample code and links would be GREATLY apreciated.
Thank you,
D!m
I wrote an example up awhile ago, so I'll post the same one here. Make a Form with a DirectSR and 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)
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
[Edited by Megatron on 08-02-2000 at 06:32 PM]
You could also put the Xvoice.dll (DirectSS1) control on your form.
Or you can put the Vtext.dll (TexttoSpeech1) control on your form and the mouth will move as it speaks Text1.Code:Private Sub Command1_Click()
DirectSS1.Speak Text1.text
End Sub
You could also check http://www.planet-source-code.com for strings like "Speech" and "MSAgent".Code:Private Sub Command1_Click()
TextToSpeech1.Speak Text1
End Sub
'To stop:
Private Sub Command2_Click()
TextToSpeech1.StopSpeaking
End Sub
Hope that helps.
Thank you VERY much guys you have helped greatly.
D!m
One question...Megatron...is it possible to avoid addimg words that would be recognized. I was hoping that ir would be able to recognize ANYTHING. or am'i assuming too much.
And Matthew, i need speech to text not text to speech. :) Thanx though.
Thanx,
D!m
Dim,
Microsoft® Agent is a set of software services that supports the presentation of software agents as interactive personalities within the Microsoft Windows® interface. Microsoft Agent's conversational interface approach is an extension and enhancement of the existing interactive modalities of the Windows interface.
Start Your Tour Here http://msdn.microsoft.com/workshop/c...nt/default.asp
Regards
I've learned how to use it...but i can't seem to find where it will explain how i can have the Speech recognition recognizing ANY words, meaning haveing a dictinary of it's own. And recognize name, numbers, characters...can someone explain how and if that's possible.
Thanx,
D!m
hey
where can i find a voice.ocx or dll or the control DirectSS1 ?
pls hlp me find it.
tnx lirlir
Lirlir: If you have a Speech Engine installed, they should be located in the Components List under the following names...
- Microsoft Direct Speech Recognition
- Microsoft Direct Text-To-Speech
- Microsoft Telephony
- Microsoft Voice Commands
- Microsoft Voice Dictation
- Microsoft Direct Speech Recognition
- Microsoft Voice Text
Dim: To my knowledge, You must add words that the Engine will recognize.
Here is an article on the microsoft Speech SDK that might help:
http://visualbasic.about.com/compute.../aa072600a.htm
I have found that most of the docs for the L&H TTS engine
and the Speech recognition engine are very vague only giving you the very basics. I have not found
much on how to change the voices (there are about 8 male
and 2 female) or how to add a dictionary of words that the
TTS engine uses. I guess this is something MS feels is not
too important.
[Edited by dsy5 on 08-03-2000 at 09:05 PM]