

Table of Contents
KTTS has two Application Programmer Interfaces (APIs):
The KDE Text-to-Speech API, which is used by application programmers to give their applications TTS capabilities. Applications communicate with KTTSD via D-Bus.
The KTTSD Plugin API, which is used to add speech synthesis plugins to KTTSD so that KTTS will work with a new speech synthesis engine.
The following section gives a short description of the KDE Text-to-Speech API D-Bus Interface. Full documentation for both APIs is available online at the KDE Accessibility web site (http://accessibility.kde.org).
Applications communicate requests for Text-to-Speech services via the KDE D-Bus interface to program kttsd object KSpeech.
Enter the following commands in a Konsole.
If KTTSD is not already running
kttsd
To queue a text job to be spoken
qdbus org.kde.kttsd /KSpeech say "text" "options"
where is the text to be spoken, and text is a language code
such as options, en, etc.cy
Example.
qdbus org.kde.kttsd /KSpeech say "This is a test." "en"
There are many more commands that can be sent. To see a list of possible commands,
qdbus org.kde.kttsd /KSpeech
or read the KDE Text-to-Speech API online.

