Results 1 to 13 of 13

Thread: Text2voice & voice commands...

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    Italy
    Posts
    90

    Talking

    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!

  2. #2
    Guest
    Try this.

    Code:
    TextToSpeech1.Speak Text1

  3. #3
    Hyperactive Member Zaphod64831's Avatar
    Join Date
    Mar 2000
    Posts
    268
    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.
    Email: [email protected]

    Home Page: www.olemac.net/~hutch

    I'm bored, VERY bored, and I got bored with my sig. So I changed it to this.

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

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    Italy
    Posts
    90
    It works! ;-)
    Thanks a lot for your help!

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    Italy
    Posts
    90

    Unhappy

    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

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


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

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

  9. #9
    Guest
    You can download the Microsoft Speech Engine to get these.

  10. #10
    Hyperactive Member Zaphod64831's Avatar
    Join Date
    Mar 2000
    Posts
    268
    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.
    Email: [email protected]

    Home Page: www.olemac.net/~hutch

    I'm bored, VERY bored, and I got bored with my sig. So I changed it to this.

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

    Cool Speech Engine

    I believe I have this somewhere on the hard disk (now to find it ) Thanx for replying.
    Just installed it. Works fine.

    [Edited by dsy5 on 07-30-2000 at 07:53 PM]
    Donald Sy - VB (ab)user

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

  13. #13

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    Italy
    Posts
    90
    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
  •  



Click Here to Expand Forum to Full Width