• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • interfaces
 

interfaces

Public Types | Public Member Functions | List of all members
KSpeechSink Interface Reference

#include <kspeechsink.h>

Inheritance diagram for KSpeechSink:
DCOPObject

Public Types

enum  kttsdJobState {
  jsQueued = 0 , jsSpeakable = 1 , jsSpeaking = 2 , jsPaused = 3 ,
  jsFinished = 4
}
 
enum  kttsdMarkupType { mtPlain = 0 , mtJsml = 1 , mtSmml = 2 , mtSable = 3 }
 

Public Member Functions

virtual ASYNC kttsdExiting ()
 
virtual ASYNC markerSeen (const TQCString &appId, const TQString &markerName)
 
virtual ASYNC sentenceStarted (const TQCString &appId, uint jobNum, uint seq)
 
virtual ASYNC sentenceFinished (const TQCString &appId, uint jobNum, uint seq)
 
virtual ASYNC textSet (const TQCString &appId, uint jobNum)
 
virtual ASYNC textAppended (const TQCString &appId, uint jobNum, int partNum)
 
virtual ASYNC textStarted (const TQCString &appId, uint jobNum)
 
virtual ASYNC textFinished (const TQCString &appId, uint jobNum)
 
virtual ASYNC textStopped (const TQCString &appId, uint jobNum)
 
virtual ASYNC textPaused (const TQCString &appId, uint jobNum)
 
virtual ASYNC textResumed (const TQCString &appId, uint jobNum)
 
virtual ASYNC textRemoved (const TQCString &appId, uint jobNum)
 
- Public Member Functions inherited from DCOPObject
 DCOPObject (TQObject *obj)
 
 DCOPObject (const TQCString &objId)
 
TQCString objId () const
 
bool setObjId (const TQCString &objId)
 
virtual bool process (const TQCString &fun, const TQByteArray &data, TQCString &replyType, TQByteArray &replyData)
 
virtual bool processDynamic (const TQCString &fun, const TQByteArray &data, TQCString &replyType, TQByteArray &replyData)
 
virtual QCStringList functionsDynamic ()
 
virtual QCStringList interfacesDynamic ()
 
virtual QCStringList interfaces ()
 
virtual QCStringList functions ()
 
void emitDCOPSignal (const TQCString &signal, const TQByteArray &data)
 
bool connectDCOPSignal (const TQCString &sender, const TQCString &senderObj, const TQCString &signal, const TQCString &slot, bool Volatile)
 
bool disconnectDCOPSignal (const TQCString &sender, const TQCString &senderObj, const TQCString &signal, const TQCString &slot)
 
DCOPClient * callingDcopClient ()
 

Additional Inherited Members

- Static Public Member Functions inherited from DCOPObject
static bool hasObject (const TQCString &objId)
 
static DCOPObject * find (const TQCString &objId)
 
static TQPtrList< DCOPObject > match (const TQCString &partialId)
 
static TQCString objectName (TQObject *obj)
 

Detailed Description

KTTSD DCOP Signal Sink.

Since
KDE 3.4

This defines the interface to sink signals emitted by KTTSD, the KDE Text-to-speech Deamon. The DCOP IDL Compiler generates a skeleton file from this interface definition that will marshal the arguments for you.

Usage

See the Signals section of kspeech.h for instructions.

Warning
The KSpeechSink interface is still being developed and is likely to change in the future.

Definition at line 42 of file kspeechsink.h.

Member Enumeration Documentation

◆ kttsdJobState

enum KSpeechSink::kttsdJobState

Job states returned by method getTextJobState.

Enumerator
jsQueued 

Job has been queued but is not yet speakable.

jsSpeakable 

Job is speakable, but is not speaking.

jsSpeaking 

Job is currently speaking.

jsPaused 

Job has been paused.

jsFinished 

Job is finished and is deleteable.

Definition at line 50 of file kspeechsink.h.

◆ kttsdMarkupType

enum KSpeechSink::kttsdMarkupType

Speech markup language types.

Enumerator
mtPlain 

Plain text.

mtJsml 

Java Speech Markup Language.

mtSmml 

Speech Markup Meta-language

mtSable 

Sable 2.0.

Definition at line 63 of file kspeechsink.h.

Member Function Documentation

◆ kttsdExiting()

virtual ASYNC KSpeechSink::kttsdExiting ( )
inlinevirtual

This signal is emitted just before KTTSD exits.

Definition at line 79 of file kspeechsink.h.

◆ kttsdStarted

virtual ASYNC KSpeechSink::kttsdStarted ( )
inlinevirtual

This signal is emitted when KTTSD starts or restarts after a call to reinit.

Definition at line 75 of file kspeechsink.h.

◆ markerSeen()

virtual ASYNC KSpeechSink::markerSeen ( const TQCString &  appId,
const TQString &  markerName 
)
inlinevirtual

This signal is emitted when the speech engine/plugin encounters a marker in the text.

Parameters
appIdDCOP application ID of the application that queued the text.
markerNameThe name of the marker seen.
See also
markers

Definition at line 87 of file kspeechsink.h.

◆ sentenceFinished()

virtual ASYNC KSpeechSink::sentenceFinished ( const TQCString &  appId,
uint  jobNum,
uint  seq 
)
inlinevirtual

This signal is emitted when a sentence has finished speaking.

Parameters
appIdDCOP application ID of the application that queued the text.
jobNumJob number of the text job.
seqSequence number of the text.
See also
getTextCount

Definition at line 103 of file kspeechsink.h.

◆ sentenceStarted()

virtual ASYNC KSpeechSink::sentenceStarted ( const TQCString &  appId,
uint  jobNum,
uint  seq 
)
inlinevirtual

This signal is emitted whenever a sentence begins speaking.

Parameters
appIdDCOP application ID of the application that queued the text.
jobNumJob number of the text job.
seqSequence number of the text.
See also
getTextCount

Definition at line 95 of file kspeechsink.h.

◆ textAppended()

virtual ASYNC KSpeechSink::textAppended ( const TQCString &  appId,
uint  jobNum,
int  partNum 
)
inlinevirtual

This signal is emitted whenever a new part is appended to a text job.

Parameters
appIdThe DCOP senderId of the application that created the job.
jobNumJob number of the text job.
partNumPart number of the new part. Parts are numbered starting at 1.

Definition at line 119 of file kspeechsink.h.

◆ textFinished()

virtual ASYNC KSpeechSink::textFinished ( const TQCString &  appId,
uint  jobNum 
)
inlinevirtual

This signal is emitted whenever a text job is finished.

The job has been marked for deletion from the queue and will be deleted when another job reaches the Finished state. (Only one job in the text queue may be in state Finished at one time.) If startText or resumeText is called before the job is deleted, it will remain in the queue for speaking.

Parameters
appIdThe DCOP senderId of the application that created the job. NULL if kttsd.
jobNumJob number of the text job.

Definition at line 136 of file kspeechsink.h.

◆ textPaused()

virtual ASYNC KSpeechSink::textPaused ( const TQCString &  appId,
uint  jobNum 
)
inlinevirtual

This signal is emitted whenever a speaking text job is paused.

Parameters
appIdThe DCOP senderId of the application that created the job. NULL if kttsd.
jobNumJob number of the text job.

Definition at line 148 of file kspeechsink.h.

◆ textRemoved()

virtual ASYNC KSpeechSink::textRemoved ( const TQCString &  appId,
uint  jobNum 
)
inlinevirtual

This signal is emitted whenever a text job is deleted from the queue.

The job is no longer in the queue when this signal is emitted.

Parameters
appIdThe DCOP senderId of the application that created the job. NULL if kttsd.
jobNumJob number of the text job.

Definition at line 161 of file kspeechsink.h.

◆ textResumed()

virtual ASYNC KSpeechSink::textResumed ( const TQCString &  appId,
uint  jobNum 
)
inlinevirtual

This signal is emitted when a text job, that was previously paused, resumes speaking.

Parameters
appIdThe DCOP senderId of the application that created the job. NULL if kttsd.
jobNumJob number of the text job.

Definition at line 154 of file kspeechsink.h.

◆ textSet()

virtual ASYNC KSpeechSink::textSet ( const TQCString &  appId,
uint  jobNum 
)
inlinevirtual

This signal is emitted whenever a new text job is added to the queue.

Parameters
appIdThe DCOP senderId of the application that created the job. NULL if kttsd.
jobNumJob number of the text job.

Definition at line 110 of file kspeechsink.h.

◆ textStarted()

virtual ASYNC KSpeechSink::textStarted ( const TQCString &  appId,
uint  jobNum 
)
inlinevirtual

This signal is emitted whenever speaking of a text job begins.

Parameters
appIdThe DCOP senderId of the application that created the job. NULL if kttsd.
jobNumJob number of the text job.

Definition at line 126 of file kspeechsink.h.

◆ textStopped()

virtual ASYNC KSpeechSink::textStopped ( const TQCString &  appId,
uint  jobNum 
)
inlinevirtual

This signal is emitted whenever a speaking text job stops speaking.

Parameters
appIdThe DCOP senderId of the application that created the job. NULL if kttsd.
jobNumJob number of the text job.

Definition at line 142 of file kspeechsink.h.


The documentation for this interface was generated from the following file:
  • kspeechsink.h

interfaces

Skip menu "interfaces"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

interfaces

Skip menu "interfaces"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for interfaces by doxygen 1.9.4
This website is maintained by Timothy Pearson.