Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

text to speach

Status
Not open for further replies.

exodus300

Programmer
Mar 22, 2002
262
AU
OK ths is a biggy, I'm wondering if it is possible.
Can you somehow make use of the computer's text to speech feature (if it has one) to make the computer say soemthing, for example:
Code:
Say "Hello World"
Say "You have " & score & " points!"
[Thanks in advance|Hope I helped you]
Exodus300
World-Wide Alliance of Evil and Twisted People
[red]"Experimentation by Example is the best learning tool" - Exodus300[/red]
Code:
if (pop_tarts == 0)
{
   tantrum = 1;
}
[pc3]
 
i've not heard of a text-to-speech feature but i think you could do what you want if you recorded the required words in .wav (or something similiar) files and play them back the files at the required time.
I would also guess (I could well be very wrong) that VB would not be the best way to make a text-to-speech program from scratch as its not designed for such things.

Neil
 
Microsoft Agent has a fairly simple interface for text-to-speech.
 
How would I implement it?

NeilV, I thought of your idea but it would mean I could only have certain things said. But I want it to be able to say things that will be different each time, eg. someone's name. [Thanks in advance|Hope I helped you]
Exodus300
World-Wide Alliance of Evil and Twisted People
[red]"Experimentation by Example is the best learning tool" - Exodus300[/red]
Code:
if (pop_tarts == 0)
{
   tantrum = 1;
}
[pc3]
 
Try this link:
Let me know if this helps
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'There are 10 kinds of people in the world: those who understand binary, and those who don't.'
 
I found in my newly found Components item when right clicking the object toolbar an item called Microsoft Direct Text-To-Speech. However, when I try to select it VB freezes. Is this item any help, If I can get it selected? [Thanks in advance|Hope I helped you]
Exodus300
World-Wide Alliance of Evil and Twisted People
[red]"Experimentation by Example is the best learning tool" - Exodus300[/red]
Code:
if (pop_tarts == 0)
{
   tantrum = 1;
}
[pc3]
 
I found DirectSS object. Posted new thread with queries about it. [Thanks in advance|Hope I helped you]
Exodus300
World-Wide Alliance of Evil and Twisted People
[red]"Experimentation by Example is the best learning tool" - Exodus300[/red]
Code:
if (pop_tarts == 0)
{
   tantrum = 1;
}
[pc3]
 
Here is a very quick example for directss1 speach
to a form add directss1 object, and a command button.
when you click the cmd button you should here a greeting from me.


Private Sub Command1_Click()
DirectSS1.Speak ("hello from Psy,ber,tek")
End Sub

Private Sub DirectSS1_ClickIn(ByVal x As Long, ByVal y As Long)

End Sub

Private Sub Form_Load()



[alien] Psybertek [alien]
-----------------------------------------
"Computer junkies never die, They Just upload."


End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top