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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding speech capabilities to software. HELP!!

Status
Not open for further replies.

qedusa

Programmer
Jan 12, 2002
43
US
I'm trying to port one of my Mac programs to Windows using VC++. I need to be able to output text to speech but can't find any useful info in VC++ on the subject. For example, I can do something on Mac like this:

#include "Speech.h"

SpeakString("Hello World!");

And it will make the computer 'talk' using a synthesized voice.
I want to be able to do same thing in VC++. Does anyone know how it's done and are there any sample code available??

Thanks
 
Hi

Thta's very easy ...
Add the components 'TexttoSpeech' from Component Gallery

Drag one instance on your dialog box ( to be fast)
Use Class wizard to name it (for example, m_Speech)

Add the following lines in your handler:

CString str;
str = "Hello World";

m_Speech.Speak( str );

HTH

Thierry
EMail: Thierry.Marneffe@swing.be
 
Thanks, I'll try that! I'm a just a bit upset that Visuall C++'s help is not very good!
 
Hi again, I can't find the component gallery! Perhaps my copy of VC++ is missing something. When I was messing around trying to find it I must've done something else because now I can't get the Class Wizard to open either (appears dimmed in menus).
Currently I'm using VC++ Introductory edition but have Standard edition due this week in mail. Is the component gallery something that's not included in the Intro Edition? Or am I looking in the wrong place?

Thanks...
Nick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top