From 5e6e1e8838fe7637ef588e0fb080ad07fc5700aa Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Sun, 17 Mar 2013 13:41:49 +0000 Subject: Winter Speak plugin added (not adopted) git-svn-id: http://svn.miranda-ng.org/main/trunk@4076 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- .../WinterSpeak/speak/config/speech_interface.h | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 plugins/!NotAdopted/WinterSpeak/speak/config/speech_interface.h (limited to 'plugins/!NotAdopted/WinterSpeak/speak/config/speech_interface.h') diff --git a/plugins/!NotAdopted/WinterSpeak/speak/config/speech_interface.h b/plugins/!NotAdopted/WinterSpeak/speak/config/speech_interface.h new file mode 100644 index 0000000000..69d2d44e14 --- /dev/null +++ b/plugins/!NotAdopted/WinterSpeak/speak/config/speech_interface.h @@ -0,0 +1,48 @@ +#ifndef guard_speak_config_speech_interface_h +#define guard_speak_config_speech_interface_h +//============================================================================== +// Miranda Speak Plugin, © 2002 Ryan Winter +//============================================================================== + +#include "defs/voice_desc.h" + +#include +#include + +class TextToSpeech; + +class SpeechInterface +{ + public: + SpeechInterface(); + ~SpeechInterface(); + + //-------------------------------------------------------------------------- + // Description : create the text to speech object + // Parameters : engine - the name of the engine to create + // Returns : an instance of the text to speech engine + //-------------------------------------------------------------------------- + TextToSpeech * createTts(std::string &engine) const; + + //-------------------------------------------------------------------------- + // Description : configure the tts object + // Parameters : tts - the tts object to configure + // desc - the description of the voice + //-------------------------------------------------------------------------- + void configureTts(TextToSpeech *tts, const VoiceDesc &desc) const; + + //-------------------------------------------------------------------------- + // Description : create a vector of available engines + //-------------------------------------------------------------------------- + std::vector getAvailableEngines(); +}; + +//============================================================================== +// +// Summary : Configure a text to speech object +// +// Description : Encapsulate the different speech engines available +// +//============================================================================== + +#endif \ No newline at end of file -- cgit v1.2.3