rbutil: Delete the long-disabled and very obsolete SAPI4 TTS code

Change-Id: I24f69cbe646d5c5ddb488a8a1912d028ec017acf
This commit is contained in:
Solomon Peachy 2026-07-09 14:47:56 -04:00
parent ca7399821f
commit a9a4b3316f
3 changed files with 0 additions and 50 deletions

View file

@ -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

View file

@ -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

View file

@ -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