aboutsummaryrefslogtreecommitdiff
path: root/backends/text-to-speech/windows/windows-text-to-speech.cpp
diff options
context:
space:
mode:
authorJaromir Wysoglad2019-07-15 21:09:36 -0700
committerFilippos Karapetis2019-09-01 22:47:55 +0300
commit8357e8e6bf909353c3db720ba8fda9cdb0a41933 (patch)
treec8a5735d16f9b82249d4877cb3985238bc4beadf /backends/text-to-speech/windows/windows-text-to-speech.cpp
parent6303f522e180f1474434c75c0e5a4d44b141fe3a (diff)
downloadscummvm-rg350-8357e8e6bf909353c3db720ba8fda9cdb0a41933.tar.gz
scummvm-rg350-8357e8e6bf909353c3db720ba8fda9cdb0a41933.tar.bz2
scummvm-rg350-8357e8e6bf909353c3db720ba8fda9cdb0a41933.zip
TTS: Prepare for windows TTS
Add windows configuration in configure Add basic skeleton to backends Check if ttsMan is initialized in GUI
Diffstat (limited to 'backends/text-to-speech/windows/windows-text-to-speech.cpp')
-rw-r--r--backends/text-to-speech/windows/windows-text-to-speech.cpp109
1 files changed, 109 insertions, 0 deletions
diff --git a/backends/text-to-speech/windows/windows-text-to-speech.cpp b/backends/text-to-speech/windows/windows-text-to-speech.cpp
new file mode 100644
index 0000000000..cae1e6be78
--- /dev/null
+++ b/backends/text-to-speech/windows/windows-text-to-speech.cpp
@@ -0,0 +1,109 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+// Disable symbol overrides so that we can use system headers.
+#define FORBIDDEN_SYMBOL_ALLOW_ALL
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+#if defined(USE_WINDOWS_TTS)
+#include <basetyps.h>
+#include <windows.h>
+#include <Servprov.h>
+#include <sapi.h>
+#include "backends/text-to-speech/windows/sphelper-scummvm.h"
+
+#include "backends/text-to-speech/windows/windows-text-to-speech.h"
+
+
+#include "common/translation.h"
+#include "common/debug.h"
+#include "common/system.h"
+#include "common/ustr.h"
+#include "common/config-manager.h"
+
+WindowsTextToSpeechManager::WindowsTextToSpeechManager() {
+ debug("hi");
+ init();
+}
+
+void WindowsTextToSpeechManager::init() {
+}
+
+WindowsTextToSpeechManager::~WindowsTextToSpeechManager() {
+}
+
+bool WindowsTextToSpeechManager::say(Common::String str) {
+ return true;
+}
+
+bool WindowsTextToSpeechManager::stop() {
+ return true;
+}
+
+bool WindowsTextToSpeechManager::pause() {
+ return true;
+}
+
+bool WindowsTextToSpeechManager::resume() {
+ return true;
+}
+
+bool WindowsTextToSpeechManager::isSpeaking() {
+ return true;
+}
+
+bool WindowsTextToSpeechManager::isPaused() {
+ return true;
+}
+
+bool WindowsTextToSpeechManager::isReady() {
+ return true;
+}
+
+void WindowsTextToSpeechManager::setVoice(unsigned index) {
+}
+
+void WindowsTextToSpeechManager::setRate(int rate) {
+}
+
+void WindowsTextToSpeechManager::setPitch(int pitch) {
+}
+
+void WindowsTextToSpeechManager::setVolume(unsigned volume) {
+}
+
+int WindowsTextToSpeechManager::getVolume() {
+ return 0;
+}
+
+void WindowsTextToSpeechManager::setLanguage(Common::String language) {
+}
+
+void WindowsTextToSpeechManager::createVoice(int typeNumber, Common::TTSVoice::Gender gender, char *description) {
+}
+
+void WindowsTextToSpeechManager::updateVoices() {
+
+}
+
+#endif