My Project
|
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 #pragma once 00029 #include "define.h" 00030 #include "Window.h" 00031 #include "Speech.h" 00032 #include "SpeechManager.h" 00033 #include "Config.h" 00034 #include "SpeechThread.h" 00035 00036 namespace SallyAPI 00037 { 00038 namespace Speech 00039 { 00048 00049 class DLL_API_SALLY CSpeechOutputManager 00050 { 00051 private: 00052 static SallyAPI::GUI::CWindow* m_pMainWindow; 00053 static SallyAPI::Speech::CSpeechOutputManager* m_pObject; 00054 static SallyAPI::Speech::CSpeech* m_pSpeech; 00055 static bool m_bActive; 00056 00057 SallyAPI::Speech::CSpeechThread m_pSpeechThread; 00058 00059 CSpeechOutputManager(); 00060 ~CSpeechOutputManager(); 00061 public: 00062 static SallyAPI::Speech::CSpeechOutputManager* GetInstance(); 00063 static void DeleteInstance(); 00064 00065 static void Activate(); 00066 static void Deactivate(); 00067 00068 static void SetValues(SallyAPI::GUI::CWindow* mainWindow); 00069 00070 void Stop(); 00071 void Speak(const std::string& say, bool isImportand = false); 00072 void Speak(const std::string& say, bool isImportand, const char* first,...); 00073 }; 00074 } 00075 }