VB6 - Text To Speech

All tutorials created in VB6 to be posted in here.
7 posts Page 1 of 1
Contributors
GoodGuy17
Coding God
Coding God
Posts: 1610
Joined: Mon Sep 07, 2009 12:25 am

VB6 - Text To Speech
GoodGuy17
Here is a little tutorial on how to make a text to speech program in Visual Basic 6!
1. Open VB6.
2. Select Standard Exe and click Open.
3. Resize the form and rename it.
4. Add 1 Textbox and 1 button.
5. Make the textbox's text "" and the button's caption "Say"
6. Double Click the button and type:
Code: Select all
Set ObjTextToSpeech = CreateObject("SAPI.spVoice")
ObjTextToSpeech.speak (Text1.Text)
7. Press F5 and test it. It should work.
Enjoy again!
~GoodGuy17~ :D
User avatar
Nery
Co-Admin Moderator
Co-Admin Moderator
Posts: 1117
Joined: Mon Sep 07, 2009 8:11 pm

Re: VB6 - Text To Speech
Nery
There are more voices besides "SAPI"
GoodGuy17
Coding God
Coding God
Posts: 1610
Joined: Mon Sep 07, 2009 12:25 am

Re: VB6 - Text To Speech
GoodGuy17
OK, but I don't know them. You're starting to bum me out with these negative comments...
User avatar
Nery
Co-Admin Moderator
Co-Admin Moderator
Posts: 1117
Joined: Mon Sep 07, 2009 8:11 pm

Re: VB6 - Text To Speech
Nery
It wasn't a negative comment, do you see any negative words in my comment? Do you?... Even if it was a negative comment, why are you getting bumed? Can't you accept a negative comment, all you want are positive comments... Life isn't like that, learn to learn with your mistakes, learn to hear the others when they say it is wrong and instead of flame him try to learn with him.

If you can't handle being rated and commented please stop posting tutorials and snipets.
GoodGuy17
Coding God
Coding God
Posts: 1610
Joined: Mon Sep 07, 2009 12:25 am

Re: VB6 - Text To Speech
GoodGuy17
EDIT: Just kidding, I'll still reply. I didn't think I was trying to flame you though. To tell ya the truth, I don't really know what "flame" means. blusho; But seriously, I am sorry if I made you mad.
Last edited by GoodGuy17 on Fri Oct 30, 2009 7:53 pm, edited 1 time in total.
User avatar
Nery
Co-Admin Moderator
Co-Admin Moderator
Posts: 1117
Joined: Mon Sep 07, 2009 8:11 pm

Re: VB6 - Text To Speech
Nery
Ok, I hope you learnt something.
User avatar
TrapInc
Just Registered
Just Registered
Posts: 7
Joined: Thu Jul 30, 2009 10:02 am

Re: VB6 - Text To Speech
TrapInc
I've been looking for an example like this, Thanks alot! cooll;
7 posts Page 1 of 1
Return to “VB6 Tutorials”