123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #ifndef __TrekSpeech__
- #define __TrekSpeech__
- #include <dsound.h>
- #include "speech.h"
- class TrekSpeech {
- private:
- boolean m_HaveSpeech;
- PIAUDIODIRECT m_pIAD;
-
- public:
- PITTSCENTRAL m_pITTSCentral;
- TTSMODEINFO m_TTSModeInfo;
-
- TrekSpeech();
- ~TrekSpeech();
-
-
-
- HRESULT InitAudioDest(LPDIRECTSOUND lpDS);
- HRESULT InitAudioDestination(LPDIRECTSOUND lpDS);
- void desiredGender(WORD wGender);
- HRESULT SelectTTSEngine();
-
-
-
-
-
- HRESULT SayText(char *text);
- };
- extern TrekSpeech g_TrekSpeech;
- #define TRYSAYTEXT(text) g_TrekSpeech.SayText(text)
- #endif
|