Page 1 of 1

VB6 - Text To Speech

Posted: Fri Oct 30, 2009 12:57 am
by 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

Re: VB6 - Text To Speech

Posted: Fri Oct 30, 2009 9:49 am
by Nery
There are more voices besides "SAPI"

Re: VB6 - Text To Speech

Posted: Fri Oct 30, 2009 12:13 pm
by GoodGuy17
OK, but I don't know them. You're starting to bum me out with these negative comments...

Re: VB6 - Text To Speech

Posted: Fri Oct 30, 2009 12:16 pm
by 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.

Re: VB6 - Text To Speech

Posted: Fri Oct 30, 2009 7:48 pm
by 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.

Re: VB6 - Text To Speech

Posted: Fri Oct 30, 2009 7:49 pm
by Nery
Ok, I hope you learnt something.

Re: VB6 - Text To Speech

Posted: Thu Jun 03, 2010 7:35 pm
by TrapInc
I've been looking for an example like this, Thanks alot! cooll;