summaryrefslogtreecommitdiff
path: root/plugins/WinterSpeak/src/SpeechInterface.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/WinterSpeak/src/SpeechInterface.h')
-rw-r--r--plugins/WinterSpeak/src/SpeechInterface.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/plugins/WinterSpeak/src/SpeechInterface.h b/plugins/WinterSpeak/src/SpeechInterface.h
new file mode 100644
index 0000000000..eec7eae4f0
--- /dev/null
+++ b/plugins/WinterSpeak/src/SpeechInterface.h
@@ -0,0 +1,32 @@
+#pragma once
+
+#include <vector>
+
+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::wstring &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<std::wstring> getAvailableEngines();
+};
+