diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2013-10-19 21:33:25 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2013-10-19 21:33:25 +0000 |
commit | ce83b46d4548feb14cc4fb521a22de135c5c6dfa (patch) | |
tree | 5357d9cdcd003abf4d917f61179d500b1cde6179 /plugins/!NotAdopted/WinterSpeak/speak/config/speech_interface.cpp | |
parent | bd6ed4be499ccd60328ec16fcfc1a0a5664bbdc6 (diff) |
Winter Speak has been adopted.
git-svn-id: http://svn.miranda-ng.org/main/trunk@6544 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/!NotAdopted/WinterSpeak/speak/config/speech_interface.cpp')
-rw-r--r-- | plugins/!NotAdopted/WinterSpeak/speak/config/speech_interface.cpp | 91 |
1 files changed, 0 insertions, 91 deletions
diff --git a/plugins/!NotAdopted/WinterSpeak/speak/config/speech_interface.cpp b/plugins/!NotAdopted/WinterSpeak/speak/config/speech_interface.cpp deleted file mode 100644 index c80a219165..0000000000 --- a/plugins/!NotAdopted/WinterSpeak/speak/config/speech_interface.cpp +++ /dev/null @@ -1,91 +0,0 @@ -//==============================================================================
-// Miranda Speak Plugin, © 2002 Ryan Winter
-//==============================================================================
-
-#pragma warning(disable:4786)
-
-#include "speech_interface.h"
-
-#include "config/config_database.h"
-
-#include <general/debug/debug.h>
-#include <general/text_to_speech/speech_api_40a/speech_api_40a.h>
-#include <general/text_to_speech/speech_api_51/speech_api_51.h>
-
-//------------------------------------------------------------------------------
-// public:
-//------------------------------------------------------------------------------
-SpeechInterface::SpeechInterface()
-{
- CLASSCERR("SpeechInterface::SpeechInterface");
-}
-
-//------------------------------------------------------------------------------
-SpeechInterface::~SpeechInterface()
-{
- CLASSCERR("SpeechInterface::~SpeechInterface");
-}
-
-//------------------------------------------------------------------------------
-TextToSpeech *
-SpeechInterface::createTts(std::string &engine) const
-{
- CLASSCERR("SpeechInterface::createTts()");
-
- TextToSpeech *tts = 0;
-
- if (SpeechApi40a::getDescription() == engine)
- {
- tts = new SpeechApi40a();
- }
- else if (SpeechApi51::getDescription() == engine)
- {
- tts = new SpeechApi51();
- }
-
- CLASSCERR("SpeechInterface::createTts() return " << tts);
- return tts;
-}
-
-//------------------------------------------------------------------------------
-void
-SpeechInterface::configureTts(TextToSpeech *tts, const VoiceDesc &desc) const
-{
- CLASSCERR("SpeechInterface::configureTts(" << tts << ",)");
-
- if (!tts)
- {
- return;
- }
-
- tts->setVoice(desc.voice);
- tts->setVolume(desc.volume);
- tts->setRate(desc.rate);
- tts->setPitch(desc.pitch);
- tts->load();
-}
-
-//------------------------------------------------------------------------------
-std::vector<std::string>
-SpeechInterface::getAvailableEngines()
-{
- CLASSCERR("SpeechInterface::getAvailableEngines");
-
- std::vector<std::string> engines;
-
- SpeechApi40a sapi40a;
- if (sapi40a.isAvailable())
- {
- engines.push_back(SpeechApi40a::getDescription());
- }
-
- SpeechApi51 sapi51;
- if (sapi51.isAvailable())
- {
- engines.push_back(SpeechApi51::getDescription());
- }
-
- return engines;
-}
-
-//==============================================================================
|