home *** CD-ROM | disk | FTP | other *** search
- // Dave Wilson
- // 2-13-96
- // CW 8
-
- //==============================================
- #ifndef _TCOMPUTER_
- #include "TComputer.h"
- #endif
-
- #ifndef _TTALKER_
- #include "TTalker.h"
- #endif
-
- //==============================================
- void
- main()
- {
- const Boolean kWait = TRUE;
- if (!TComputer::HasTextToSpeech())
- SysBeep(1);
- /*
- TTalker* bob = new TTalker();
- bob->Faster();
- bob->SayString("Hello There Jeanette", kWait);
- bob->SayString("I'm a stand-alone application!", kWait);
- delete bob;
-
- TTalker* kid = new TTalker();
- kid->UseVoiceNamed("Junior");
- float pi = 3.14159;
- const short kNumberDigits = 2;
- kid->Slower();
- kid->SayFloat(pi, kNumberDigits, kWait);
- delete kid;
- */
- TTalker* hal = new TTalker();
- hal->Faster();
- hal->Faster();
- char* voiceName = "Princess";
- for (short index = 0; index <= hal->GetNumberVoices(); index ++) {
- hal->UseVoiceNamed(voiceName);
- hal->UseVoice(index);
- voiceName = hal->GetVoiceName(index);
- hal->SayString(voiceName, kWait);
- hal->SayInteger(index, kWait);
- }
- delete hal;
-
- }