diff --git a/utils/rbutilqt/CMakeLists.txt b/utils/rbutilqt/CMakeLists.txt index 60289b8ca0..aecfc2d004 100644 --- a/utils/rbutilqt/CMakeLists.txt +++ b/utils/rbutilqt/CMakeLists.txt @@ -230,7 +230,6 @@ add_library(rbbase ${CMAKE_CURRENT_LIST_DIR}/base/ttsmssp.h ${CMAKE_CURRENT_LIST_DIR}/base/ttssapi.cpp ${CMAKE_CURRENT_LIST_DIR}/base/ttssapi.h - ${CMAKE_CURRENT_LIST_DIR}/base/ttssapi4.h ${CMAKE_CURRENT_LIST_DIR}/base/ttsswift.h ${CMAKE_CURRENT_LIST_DIR}/base/uninstall.cpp ${CMAKE_CURRENT_LIST_DIR}/base/uninstall.h diff --git a/utils/rbutilqt/base/ttsbase.cpp b/utils/rbutilqt/base/ttsbase.cpp index 3bb9746dce..f2184c4a46 100644 --- a/utils/rbutilqt/base/ttsbase.cpp +++ b/utils/rbutilqt/base/ttsbase.cpp @@ -21,7 +21,6 @@ #include "ttsfestival.h" #include "ttssapi.h" -#include "ttssapi4.h" #include "ttsmssp.h" #include "ttsexes.h" #include "ttsespeak.h" @@ -51,9 +50,6 @@ void TTSBase::initTTSList() ttsList["flite"] = tr("Flite TTS Engine"); ttsList["swift"] = tr("Swift TTS Engine"); #if defined(Q_OS_WIN) -#if 0 /* SAPI4 has been disabled since long. Keep support for now. */ - ttsList["sapi4"] = tr("SAPI4 TTS Engine"); -#endif ttsList["sapi"] = tr("SAPI5 TTS Engine"); ttsList["mssp"] = tr("MS Speech Platform"); #endif @@ -73,8 +69,6 @@ TTSBase* TTSBase::getTTS(QObject* parent,QString ttsName) #if defined(Q_OS_WIN) if(ttsName == "sapi") tts = new TTSSapi(parent); - else if (ttsName == "sapi4") - tts = new TTSSapi4(parent); else if (ttsName == "mssp") tts = new TTSMssp(parent); else diff --git a/utils/rbutilqt/base/ttssapi4.h b/utils/rbutilqt/base/ttssapi4.h deleted file mode 100644 index d6408eaa2c..0000000000 --- a/utils/rbutilqt/base/ttssapi4.h +++ /dev/null @@ -1,43 +0,0 @@ -/*************************************************************************** -* __________ __ ___. -* Open \______ \ ____ ____ | | _\_ |__ _______ ___ -* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / -* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < -* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ -* \/ \/ \/ \/ \/ -* -* Copyright (C) 2012 by Dominik Riebeling -* -* 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 software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY -* KIND, either express or implied. -* -****************************************************************************/ - -#ifndef TTSSAPI4_H -#define TTSSAPI4_H - -#include "ttsbase.h" -#include "ttssapi.h" - -class TTSSapi4: public TTSSapi -{ - Q_OBJECT - public: - TTSSapi4(QObject* parent=nullptr) : TTSSapi(parent) - { - m_TTSTemplate = "cscript //nologo \"%exe\" " - "/language:%lang /voice:\"%voice\" " - "/speed:%speed \"%options\" /sapi4"; - m_TTSVoiceTemplate = "cscript //nologo \"%exe\" " - "/language:%lang /listvoices /sapi4"; - m_TTSType = "sapi4"; - } - -}; - -#endif