Results 1 to 7 of 7

Thread: Text to speech won't work [RESOLVED]

  1. #1

    Thread Starter
    Frenzied Member blindlizard's Avatar
    Join Date
    Feb 2001
    Location
    Austin, TX - United States of America
    Posts
    1,141

    Text to speech won't work [RESOLVED]

    I am trying to use the MS Agent control to do text-speech. I have downloaded all kinds of crap from microsoft, but cannot get it to talk. And yes I have the speech applet in my control panel. When I do this, the agent just displays the bubble with text in it. How can I get it to talk?
    VB Code:
    1. Private WithEvents MsAgent As Agent
    2. 'Create a Character Object
    3. Private Joe As IAgentCtlCharacterEx
    4.  
    5. Private Sub Command1_Click()
    6.  
    7. Joe.Speak "I will emphasize \emp\this word."
    8.  
    9. End Sub
    10.  
    11. Private Sub Form_Load()
    12.  
    13. Set MsAgent = New Agent
    14. Set MsAgent = New Agent
    15.  
    16.  
    17.  
    18. 'Load the Default Character by not supplying
    19. 'an ACS file
    20. MsAgent.Characters.Load "Joe", _
    21.        "e:\vb stuff\agent\e-man.acs"
    22.  
    23. '‘Set the Merlin object to our new character.
    24. Set Joe = MsAgent.Characters("Joe")
    25.  
    26. Joe.Show
    27. End Sub
    Last edited by blindlizard; Dec 24th, 2002 at 12:10 PM.
    I drink to make other people more interesting!
    [vbcode]On Error GoTo Bar[/vbcode]
    http://www.monsterlizard.com

  2. #2
    Addicted Member BarankinBeAMan's Avatar
    Join Date
    Aug 2002
    Location
    Reston,Va
    Posts
    164

    do this

    First add reference:
    Microsoft Voice Text
    Then:

    Private Sub Command1_Click()
    TextToSpeech1.Speak ("First Steps")
    End Sub

    Now you are talking.

    P.S.
    If you have no agent, get it from http://activex.microsoft.com/activex...pi/spchapi.exe

  3. #3
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950
    Just download Microsoft Speech SDK 5.1
    It's way better than MS Agent.
    Don't anthropomorphize computers -- they hate it

  4. #4

    Thread Starter
    Frenzied Member blindlizard's Avatar
    Join Date
    Feb 2001
    Location
    Austin, TX - United States of America
    Posts
    1,141
    BarankinBeAMan I will try that tonight when I get home.
    vbgladiator I downloaded that last night, and the sample TTS project worked, I could hear it. I will use that as a last resort. What I am doing is building a Windows Shell with the Agent control for my son (and any other kids that want it). He is 5 and doesn't read yet, so I want it to tell him what things are, like read the title of an icon when you wouse over etc. I thought it would be cool with the agent so someone is talking.
    I drink to make other people more interesting!
    [vbcode]On Error GoTo Bar[/vbcode]
    http://www.monsterlizard.com

  5. #5

    Thread Starter
    Frenzied Member blindlizard's Avatar
    Join Date
    Feb 2001
    Location
    Austin, TX - United States of America
    Posts
    1,141
    Ok, I couldn't wait to try it. I installed everything at work (sshh don't tell). And it WORKED!! finally, my agent can talk. Thanks for the help
    I drink to make other people more interesting!
    [vbcode]On Error GoTo Bar[/vbcode]
    http://www.monsterlizard.com

  6. #6
    Addicted Member
    Join Date
    Dec 2002
    Location
    Malaysia
    Posts
    224

    First add reference:
    Microsoft Voice Text
    Then:

    Private Sub Command1_Click()
    TextToSpeech1.Speak ("First Steps")
    End Sub

    Now you are talking.

    P.S.
    If you have no agent, get it from http://activex.microsoft.com/active...api/spchapi.exe
    I'd done this ... but it says ... Object not FOund . Am I suppose to download spchapi.exe??

  7. #7
    Addicted Member BarankinBeAMan's Avatar
    Join Date
    Aug 2002
    Location
    Reston,Va
    Posts
    164
    Yes, you dooooo....

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