File indexing completed on 2025-04-20 12:50:01
0001 /* 0002 SPDX-FileCopyrightText: 2022-2023 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 #include "textedittexttospeech_private_export.h" 0009 #include <QDebug> 0010 #include <QObject> 0011 #include <QVoice> 0012 namespace TextEditTextToSpeech 0013 { 0014 namespace TextToSpeechUtil 0015 { 0016 struct TextToSpeechSettings { 0017 QVoice voice; 0018 QString engineName; 0019 QString localeName; 0020 int rate = -1; 0021 int pitch = -1; 0022 int volumeValue = -1; 0023 }; 0024 0025 Q_REQUIRED_RESULT TEXTEDITTEXTTOSPEECH_TESTS_EXPORT QString textToSpeechConfigFileName(); 0026 Q_REQUIRED_RESULT TEXTEDITTEXTTOSPEECH_TESTS_EXPORT QString textToSpeechConfigGroupName(); 0027 Q_REQUIRED_RESULT TEXTEDITTEXTTOSPEECH_TESTS_EXPORT TextToSpeechSettings loadSettings(); 0028 TEXTEDITTEXTTOSPEECH_TESTS_EXPORT void writeConfig(const TextEditTextToSpeech::TextToSpeechUtil::TextToSpeechSettings &settings); 0029 }; 0030 } 0031 TEXTEDITTEXTTOSPEECH_TESTS_EXPORT QDebug operator<<(QDebug d, const TextEditTextToSpeech::TextToSpeechUtil::TextToSpeechSettings &t);