[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeaccessibility/kmouth
From: Gary Cramblitt <garycramblitt () comcast ! net>
Date: 2006-07-07 22:47:52
Message-ID: 1152312472.754918.11354.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 559655 by cramblitt:
Fixes and change to new KSpeech API. It compiles, runs, and even speaks, but lots of errors to be fixed.
M +0 -1 configwizard.cpp
M +11 -2 texttospeechsystem.cpp
M +0 -1 wordcompletion/dictionarycreationwizard.cpp
--- trunk/KDE/kdeaccessibility/kmouth/configwizard.cpp #559654:559655
@@ -23,7 +23,6 @@
#include <klocale.h>
#include <kapplication.h>
#include <kstandarddirs.h>
-#include <ksconfig.h>
#include <kconfig.h>
#include <ktoolinvocation.h>
--- trunk/KDE/kdeaccessibility/kmouth/texttospeechsystem.cpp #559654:559655
@@ -22,6 +22,8 @@
#include <QtDBus>
#include <kapplication.h>
#include <kconfig.h>
+#include <kspeech.h>
+#include <kdebug.h>
#include "speech.h"
@@ -38,8 +40,15 @@
}
bool kttsdSay (const QString &text, const QString &language) {
- QDBusInterface kdesktop("org.kde.kttsd", "/org/kde/KSpeech", "org.kde.KSpeech");
- QDBusReply<bool> reply = kdesktop.call("sayWarning", text, language);
+ // TODO: Would be better to save off this QDBusInterface pointer and
+ // set defaults only once.
+ QDBusInterface kdesktop("org.kde.kttsd", "/KSpeech", "org.kde.KSpeech");
+ kdesktop.call("setApplicationName", "KMouth");
+ kdesktop.call("setDefaultTalker", language);
+ // FIXME: language is incorrect.
+ kDebug() << "kttsdSay: language = " << language << endl;
+ kdesktop.call("setDefaultPriority", KSpeech::jpWarning);
+ QDBusReply<bool> reply = kdesktop.call("say", text, 0);
return reply;
}
--- trunk/KDE/kdeaccessibility/kmouth/wordcompletion/dictionarycreationwizard.cpp #559654:559655
@@ -32,7 +32,6 @@
#include <kurlrequester.h>
#include <klocale.h>
#include <kcombobox.h>
-#include <ksconfig.h>
#include <kapplication.h>
#include <kstandarddirs.h>
#include <kprogressbar.h>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic