|
-
Dec 24th, 2002, 02:47 AM
#1
Thread Starter
Frenzied Member
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:
Private WithEvents MsAgent As Agent
'Create a Character Object
Private Joe As IAgentCtlCharacterEx
Private Sub Command1_Click()
Joe.Speak "I will emphasize \emp\this word."
End Sub
Private Sub Form_Load()
Set MsAgent = New Agent
Set MsAgent = New Agent
'Load the Default Character by not supplying
'an ACS file
MsAgent.Characters.Load "Joe", _
"e:\vb stuff\agent\e-man.acs"
'‘Set the Merlin object to our new character.
Set Joe = MsAgent.Characters("Joe")
Joe.Show
End Sub
Last edited by blindlizard; Dec 24th, 2002 at 12:10 PM.
-
Dec 24th, 2002, 10:24 AM
#2
Addicted Member
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
-
Dec 24th, 2002, 10:31 AM
#3
Frenzied Member
Just download Microsoft Speech SDK 5.1
It's way better than MS Agent.
Don't anthropomorphize computers -- they hate it
-
Dec 24th, 2002, 11:12 AM
#4
Thread Starter
Frenzied Member
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.
-
Dec 24th, 2002, 11:21 AM
#5
Thread Starter
Frenzied Member
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
-
Jun 10th, 2003, 03:44 AM
#6
Addicted Member
I'd done this ... but it says ... Object not FOund . Am I suppose to download spchapi.exe??
-
Jun 10th, 2003, 06:44 AM
#7
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
|