kspeechsink.h
/***************************************************** vim:set ts=4 sw=4 sts=4:
kspeechsink.h
KTTSD DCOP Signal Sink Interface
--------------------------------
Copyright:
(C) 2004 by Gary Cramblitt <garycramblitt@comcast.net>
-------------------
Original author: Gary Cramblitt <garycramblitt@comcast.net>
******************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; version 2 of the License. *
* *
***************************************************************************/
#ifndef _KSPEECHSINK_H_
#define _KSPEECHSINK_H_
#include <dcopobject.h>
class KSpeechSink : virtual public DCOPObject {
K_DCOP
public:
enum kttsdJobState
{
jsQueued = 0,
jsSpeakable = 1,
jsSpeaking = 2,
jsPaused = 3,
jsFinished = 4
};
enum kttsdMarkupType
{
mtPlain = 0,
mtJsml = 1,
mtSmml = 2,
mtSable = 3
};
k_dcop:
virtual ASYNC kttsdStarted() { };
virtual ASYNC kttsdExiting() { };
virtual ASYNC markerSeen(const QCString& appId, const QString& markerName) { Q_UNUSED(appId); Q_UNUSED(markerName); };
virtual ASYNC sentenceStarted(const QCString& appId, uint jobNum, uint seq) { Q_UNUSED(appId); Q_UNUSED(jobNum); Q_UNUSED(seq); };
virtual ASYNC sentenceFinished(const QCString& appId, uint jobNum, uint seq) { Q_UNUSED(appId); Q_UNUSED(jobNum); Q_UNUSED(seq); };
virtual ASYNC textSet(const QCString& appId, uint jobNum) { Q_UNUSED(appId); Q_UNUSED(jobNum); };
virtual ASYNC textAppended(const QCString& appId, uint jobNum, int partNum) { Q_UNUSED(appId); Q_UNUSED(jobNum); Q_UNUSED(partNum); };
virtual ASYNC textStarted(const QCString& appId, uint jobNum) { Q_UNUSED(appId); Q_UNUSED(jobNum); };
virtual ASYNC textFinished(const QCString& appId, uint jobNum) { Q_UNUSED(appId); Q_UNUSED(jobNum); };
virtual ASYNC textStopped(const QCString& appId, uint jobNum) { Q_UNUSED(appId); Q_UNUSED(jobNum); };
virtual ASYNC textPaused(const QCString& appId, uint jobNum) { Q_UNUSED(appId); Q_UNUSED(jobNum); };
virtual ASYNC textResumed(const QCString& appId, uint jobNum) { Q_UNUSED(appId); Q_UNUSED(jobNum); };
virtual ASYNC textRemoved(const QCString& appId, uint jobNum) { Q_UNUSED(appId); Q_UNUSED(jobNum); };
};
#endif // _KSPEECHSINK_H_
KSpeechSink::textSet
virtual ASYNC textSet(const QCString &appId, uint jobNum)
This signal is emitted whenever a new text job is added to the queue.
Definition: kspeechsink.h:110
KSpeechSink::kttsdStarted
virtual ASYNC kttsdStarted()
This signal is emitted when KTTSD starts or restarts after a call to reinit.
Definition: kspeechsink.h:75
KSpeechSink::textFinished
virtual ASYNC textFinished(const QCString &appId, uint jobNum)
This signal is emitted whenever a text job is finished.
Definition: kspeechsink.h:136
KSpeechSink::textStarted
virtual ASYNC textStarted(const QCString &appId, uint jobNum)
This signal is emitted whenever speaking of a text job begins.
Definition: kspeechsink.h:126
KSpeechSink::jsSpeaking
Job is currently speaking.
Definition: kspeechsink.h:54
KSpeechSink::textResumed
virtual ASYNC textResumed(const QCString &appId, uint jobNum)
This signal is emitted when a text job, that was previously paused, resumes speaking.
Definition: kspeechsink.h:154
KSpeechSink::kttsdJobState
kttsdJobState
Job states returned by method getTextJobState.
Definition: kspeechsink.h:50
KSpeechSink::sentenceFinished
virtual ASYNC sentenceFinished(const QCString &appId, uint jobNum, uint seq)
This signal is emitted when a sentence has finished speaking.
Definition: kspeechsink.h:103
KSpeechSink::jsPaused
Job has been paused.
Definition: kspeechsink.h:55
KSpeechSink::mtSmml
Speech Markup Meta-language
Definition: kspeechsink.h:67
KSpeechSink::sentenceStarted
virtual ASYNC sentenceStarted(const QCString &appId, uint jobNum, uint seq)
This signal is emitted whenever a sentence begins speaking.
Definition: kspeechsink.h:95
KSpeechSink::jsSpeakable
Job is speakable, but is not speaking.
Definition: kspeechsink.h:53
KSpeechSink::markerSeen
virtual ASYNC markerSeen(const QCString &appId, const QString &markerName)
This signal is emitted when the speech engine/plugin encounters a marker in the text.
Definition: kspeechsink.h:87
KSpeechSink::mtSable
Sable 2.0.
Definition: kspeechsink.h:68
KSpeechSink::jsQueued
Job has been queued but is not yet speakable.
Definition: kspeechsink.h:52
KSpeechSink::mtPlain
Plain text.
Definition: kspeechsink.h:65
KSpeechSink::textAppended
virtual ASYNC textAppended(const QCString &appId, uint jobNum, int partNum)
This signal is emitted whenever a new part is appended to a text job.
Definition: kspeechsink.h:119
KSpeechSink::kttsdMarkupType
kttsdMarkupType
Speech markup language types.
Definition: kspeechsink.h:63
KSpeechSink::textStopped
virtual ASYNC textStopped(const QCString &appId, uint jobNum)
This signal is emitted whenever a speaking text job stops speaking.
Definition: kspeechsink.h:142
DCOPObject
KSpeechSink::textRemoved
virtual ASYNC textRemoved(const QCString &appId, uint jobNum)
This signal is emitted whenever a text job is deleted from the queue.
Definition: kspeechsink.h:161
KSpeechSink
KTTSD DCOP Signal Sink.
Definition: kspeechsink.h:42
KSpeechSink::mtJsml
Java Speech Markup Language.
Definition: kspeechsink.h:66
KSpeechSink::textPaused
virtual ASYNC textPaused(const QCString &appId, uint jobNum)
This signal is emitted whenever a speaking text job is paused.
Definition: kspeechsink.h:148
KSpeechSink::jsFinished
Job is finished and is deleteable.
Definition: kspeechsink.h:56
KSpeechSink::kttsdExiting
virtual ASYNC kttsdExiting()
This signal is emitted just before KTTSD exits.
Definition: kspeechsink.h:79

KDE Home | KDE Accessibility Home | Description of Access Keys