summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2011-04-22 13:32:04 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2011-04-22 13:32:04 +0000
commit2e990a6827df25eb88b38d56b10696e5ce7764c1 (patch)
treee00431aa8dcb5d6030a595c27d26d8947245e1c9
parentd038db9420de69bdcd3859272c216ed4a0a2e142 (diff)
Use System TTS if none is set.
If no TTS has been selected previously default to the system one if any. Otherwise use espeak. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29758 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--rbutil/rbutilqt/base/rbsettings.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/base/rbsettings.cpp b/rbutil/rbutilqt/base/rbsettings.cpp
index 4026fb5ee9..592e5c1148 100644
--- a/rbutil/rbutilqt/base/rbsettings.cpp
+++ b/rbutil/rbutilqt/base/rbsettings.cpp
@@ -41,7 +41,13 @@ const static struct {
{ RbSettings::OfPath, "ofpath", "" },
{ RbSettings::Platform, "platform", "" },
{ RbSettings::Language, "lang", "" },
- { RbSettings::Tts, "tts", "" },
+#if defined(Q_OS_WIN32)
+ { RbSettings::Tts, "tts", "sapi" },
+#elif defined(Q_OS_MACX)
+ { RbSettings::Tts, "tts", "carbon" },
+#else
+ { RbSettings::Tts, "tts", "espeak" },
+#endif
{ RbSettings::LastTalkedFolder, "last_talked_folder", "" },
{ RbSettings::VoiceLanguage, "voicelanguage", "" },
{ RbSettings::TtsLanguage, ":tts:/language", "" },