From a27aa5dcda7e65de6e1bb04cfd8ea678242648d0 Mon Sep 17 00:00:00 2001 From: Philip Schell Date: Tue, 22 Oct 2013 12:11:15 +0000 Subject: WinterSpeak now has SAPI40a support ticket:476 and other minor fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@6584 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/WinterSpeak/src/SpeechApi40aLexicon.cpp | 51 +++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 plugins/WinterSpeak/src/SpeechApi40aLexicon.cpp (limited to 'plugins/WinterSpeak/src/SpeechApi40aLexicon.cpp') diff --git a/plugins/WinterSpeak/src/SpeechApi40aLexicon.cpp b/plugins/WinterSpeak/src/SpeechApi40aLexicon.cpp new file mode 100644 index 0000000000..efb82b84e7 --- /dev/null +++ b/plugins/WinterSpeak/src/SpeechApi40aLexicon.cpp @@ -0,0 +1,51 @@ +#include "Common.h" +#include "SpeechApi40aLexicon.h" + +#include +#include +#include +#include +#include +#include +#include +#include + +#include +//#include + + +//------------------------------------------------------------------------------ +SpeechApi40aLexicon::SpeechApi40aLexicon(HWND window, ITTSCentralW *tts_central) : m_window(window), m_tts_central(tts_central) +{ +} + +//------------------------------------------------------------------------------ +SpeechApi40aLexicon::~SpeechApi40aLexicon() +{ +} + +//------------------------------------------------------------------------------ +bool SpeechApi40aLexicon::display() +{ + if (!m_tts_central) + { + return false; + } + + ITTSDialogs *tts_dialogs = 0; + + m_tts_central->QueryInterface(IID_ITTSDialogs, (void**)&tts_dialogs); + + if (!tts_dialogs) + { + return false; + } + + if (NOERROR != tts_dialogs->LexiconDlg(m_window, NULL)) + { + return false; + } + + tts_dialogs->Release(); + return true; +} -- cgit v1.2.3