Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorvald Natvig <slicer@users.sourceforge.net>2007-12-11 22:20:44 +0300
committerThorvald Natvig <slicer@users.sourceforge.net>2007-12-11 22:20:44 +0300
commit2ba1d598a509b55e91290b9bc5d2e409b3167dbc (patch)
tree2bab1d442b1533cfa892c714a2b2aaa6842f1f12 /src/mumble/TextToSpeech_unix.cpp
parenta8579e1a6f1e55c4d93cbd0dae2b1b8012609204 (diff)
Support espeak, add festival suggestion for ubuntu
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@898 05730e5d-ab1b-0410-a4ac-84af385074fa
Diffstat (limited to 'src/mumble/TextToSpeech_unix.cpp')
-rw-r--r--src/mumble/TextToSpeech_unix.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mumble/TextToSpeech_unix.cpp b/src/mumble/TextToSpeech_unix.cpp
index 3dac82267..3afb7ab52 100644
--- a/src/mumble/TextToSpeech_unix.cpp
+++ b/src/mumble/TextToSpeech_unix.cpp
@@ -53,7 +53,9 @@ TextToSpeechPrivate::~TextToSpeechPrivate() {
void TextToSpeechPrivate::say(const QString &txt) {
QString text = txt;
- qpFestival.write(QString::fromLatin1("(SayText \"%1\")").arg(text.replace(QLatin1String("\""),QLatin1String("\\\""))).toLatin1());
+ if (! g.s.qsFestivalSearch.isEmpty())
+ text.replace(QRegExp(g.s.qsFestivalSearch),g.s.qsFestivalReplace);
+ qpFestival.write(g.s.qsFestivalPattern.arg(text).toUtf8());
}
void TextToSpeechPrivate::setVolume(int) {