kspeech.h
661 };
674 };
virtual TQByteArray getTextJobInfo(uint jobNum=0)=0
Get information about a text job.
virtual bool isSpeakingText() const =0
Determine if kttsd is currently speaking any text jobs.
void markerSeen(const TQCString &appId, const TQString &markerName)
This signal is emitted when the speech engine/plugin encounters a marker in the text.
void textFinished(const TQCString &appId, uint jobNum)
This signal is emitted whenever a text job is finished.
virtual uint getCurrentTextJob()=0
Get the job number of the current text job.
virtual ASYNC sayScreenReaderOutput(const TQString &msg, const TQString &talker)=0
Say a message as soon as possible, interrupting any other speech in progress.
virtual ASYNC setSentenceDelimiter(const TQString &delimiter)=0
Sets the GREP pattern that will be used as the sentence delimiter.
virtual ASYNC sayWarning(const TQString &warning, const TQString &talker)=0
Say a warning.
virtual TQString getTextJobSentence(uint jobNum=0, uint seq=0)=0
Return a sentence of a job.
void textPaused(const TQCString &appId, uint jobNum)
This signal is emitted whenever a speaking text job is paused.
virtual int appendText(const TQString &text, uint jobNum=0)=0
Adds another part to a text job.
virtual ASYNC changeTextTalker(const TQString &talker, uint jobNum=0)=0
Change the talker for a text job.
void textRemoved(const TQCString &appId, uint jobNum)
This signal is emitted whenever a text job is deleted from the queue.
void textStarted(const TQCString &appId, uint jobNum)
This signal is emitted whenever speaking of a text job begins.
virtual uint setText(const TQString &text, const TQString &talker)=0
Queue a text job.
virtual uint moveRelTextSentence(int n, uint jobNum=0)=0
Advance or rewind N sentences in a text job.
virtual TQString talkerCodeToTalkerId(const TQString &talkerCode)=0
Given a Talker Code, returns the Talker ID of the talker that would speak a text job with that Talker...
virtual bool supportsMarkup(const TQString &talker, uint markupType=0) const =0
Determine whether the currently-configured speech plugin supports a speech markup language.
void textSet(const TQCString &appId, uint jobNum)
This signal is emitted whenever a new text job is added to the queue.
void textResumed(const TQCString &appId, uint jobNum)
This signal is emitted when a text job, that was previously paused, resumes speaking.
virtual TQString getTextJobNumbers()=0
Get a comma-separated list of text job numbers in the queue.
virtual uint getTextJobCount()=0
Get the number of jobs in the text job queue.
virtual ASYNC sayMessage(const TQString &message, const TQString &talker)=0
Say a message.
virtual ASYNC moveTextLater(uint jobNum=0)=0
Move a text job down in the queue so that it is spoken later.
virtual int getTextCount(uint jobNum=0)=0
Get the number of sentences in a text job.
virtual bool supportsMarkers(const TQString &talker) const =0
Determine whether the currently-configured speech plugin supports markers in speech markup.
void sentenceStarted(const TQCString &appId, uint jobNum, uint seq)
This signal is emitted whenever a sentence begins speaking.
void kttsdStarted()
This signal is emitted when KTTSD starts or restarts after a call to reinit.
void sentenceFinished(const TQCString &appId, uint jobNum, uint seq)
This signal is emitted when a sentence has finished speaking.
virtual ASYNC speakClipboard()=0
Add the clipboard contents to the text queue and begin speaking it.
virtual uint setFile(const TQString &filename, const TQString &talker, const TQString &encoding)=0
Queue a text job from the contents of a file.
void textStopped(const TQCString &appId, uint jobNum)
This signal is emitted whenever a speaking text job stops speaking.
virtual ASYNC stopText(uint jobNum=0)=0
Stop a text job and rewind to the beginning.
virtual int jumpToTextPart(int partNum, uint jobNum=0)=0
Jump to the first sentence of a specified part of a text job.
virtual ASYNC resumeText(uint jobNum=0)=0
Start or resume a text job where it was paused.
void textAppended(const TQCString &appId, uint jobNum, int partNum)
This signal is emitted whenever a new part is appended to a text job.
virtual uint sayText(const TQString &text, const TQString &talker)=0
Say a plain text job.