Results 1 to 11 of 11

Thread: Speech

  1. #1

    Thread Starter
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    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
    Dim

  2. #2
    Guest
    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]

  3. #3
    Guest
    You could also put the Xvoice.dll (DirectSS1) control on your form.

    Code:
    Private Sub Command1_Click()
    DirectSS1.Speak Text1.text
    End Sub
    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()
    TextToSpeech1.Speak Text1
    End Sub
    
    'To stop:
    Private Sub Command2_Click()
    TextToSpeech1.StopSpeaking
    End Sub
    You could also check http://www.planet-source-code.com for strings like "Speech" and "MSAgent".

    Hope that helps.

  4. #4

    Thread Starter
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    Thank you VERY much guys you have helped greatly.

    D!m
    Dim

  5. #5

    Thread Starter
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    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

  6. #6
    Addicted Member Tiovital's Avatar
    Join Date
    Apr 2000
    Posts
    249
    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

  7. #7

    Thread Starter
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    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
    Dim

  8. #8
    Addicted Member
    Join Date
    Jun 2000
    Posts
    156
    hey

    where can i find a voice.ocx or dll or the control DirectSS1 ?

    pls hlp me find it.

    tnx lirlir
    The MORE I get to know,
    I realize that I know NOTHING !

  9. #9
    Guest
    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.

  10. #10
    Lively Member
    Join Date
    Jul 2000
    Posts
    94
    Here is an article on the microsoft Speech SDK that might help:
    http://visualbasic.about.com/compute.../aa072600a.htm

  11. #11
    Hyperactive Member dsy5's Avatar
    Join Date
    Jul 2000
    Location
    Lockport, NY
    Posts
    362

    Speech to text, speech recognition

    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]
    Donald Sy - VB (ab)user

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width