jovie
jovie.cpp
Go to the documentation of this file.
167 Speaker::Instance()->getAppData(callingAppId())->setDefaultPriority((KSpeech::JobPriority)defaultPriority);
197 Speaker::Instance()->getAppData(callingAppId())->setAutoConfigureTalkersOn(autoConfigureTalkersOn);
495 QDBusConnection::sessionBus().registerObject(QLatin1String( "/KSpeech" ), this, QDBusConnection::ExportAdaptors);
508 QDBusConnection::sessionBus().registerObject(QLatin1String( "/KSpeech" ), this, QDBusConnection::ExportAdaptors);
568 announceEvent(QLatin1String( "slotJobStateChanged" ), QLatin1String( "jobStateChanged" ), appId, jobNum, state);
572 void Jovie::slotMarker(const QString& appId, int jobNum, KSpeech::MarkerType markerType, const QString& markerData)
574 announceEvent(QLatin1String( "slotMarker" ), QLatin1String( "marker" ), appId, jobNum, markerType, markerData);
608 void Jovie::announceEvent(const QString& slotName, const QString& eventName, const QString& appId,
612 << " with appId " << appId << " job number " << jobNum << " marker type " << markerType << " and data " << markerData << endl;
615 void Jovie::announceEvent(const QString& slotName, const QString& eventName, const QString& appId,
619 " with appId " << appId << " job number " << jobNum << " and state " << /* SpeechJob::jobStateToStr(state) << */ endl;
QString defaultTalker() const
Returns the default talker code for the application.
Definition: appdata.cpp:73
QString ssmlFilterXsltFile() const
Returns the full path name of the XSLT file that performs SSML filtering on jobs for the application...
Definition: appdata.cpp:85
QString talkerCodeToTalkerId(const QString &talkerCode)
Given a Talker Code, returns the Talker ID of the talker that would speak a text job with that Talker...
Definition: talkermgr.cpp:326
void setCurrentTalker(const TalkerCode &talker)
Sets the current talker for all applications.
Definition: jovie.cpp:150
bool filteringOn() const
Returns the applications's current filtering enabled flag.
Definition: appdata.cpp:79
int findJobNumByAppId(const QString &appId) const
Given an appId, returns the last (most recently queued) Job Number with that appId, or if no such job, the Job Number of the last (most recent) job in the queue.
Definition: speaker.cpp:477
void setSsmlFilterXsltFile(const QString &filename)
Sets the full path name of the XSLT file that performs SSML filtering on jobs for the application...
Definition: appdata.cpp:86
bool isApplicationPaused(const QString &appId)
Return true if the application is paused.
Definition: speaker.cpp:675
QString htmlFilterXsltFile()
Returns the full path name to XSLT file used to convert HTML markup to speakable form.
Definition: jovie.cpp:205
int defaultPriority()
Returns the default priority for speech jobs submitted by the application.
Definition: jovie.cpp:160
int sayClipboard()
Submits a speech job from the contents of the clipboard.
Definition: jovie.cpp:260
bool filteringOn()
Returns whether speech jobs for this application are filtered using configured filter plugins...
Definition: jovie.cpp:180
void cancel()
Stops the currently spoken message from this connection (if there is any) and discards all the queued...
Definition: speaker.cpp:651
void setHtmlFilterXsltFile(const QString &filename)
Sets the full path name of the XSLT file that performs HTML filtering on jobs for the application...
Definition: appdata.cpp:84
QString sentenceDelimiter() const
Returns the GREP pattern that will be used as the sentence delimiter.
Definition: appdata.cpp:77
void marker(const QString &appId, int jobNum, int markerType, const QString &markerData)
This signal is emitted when a marker is processed.
void jobStateChanged(const QString &appId, int jobNum, int state)
This signal is emitted each time the state of a job changes.
void changeJobTalker(int jobNum, const QString &talker)
Change the talker of an already-submitted job.
Definition: jovie.cpp:460
void setIsSystemManager(bool isSystemManager)
Sets whether this is a System Manager application.
Definition: jovie.cpp:230
int sayFile(const QString &filename, const QString &encoding)
Creates and starts a speech job from a specified file.
Definition: jovie.cpp:241
void showManagerDialog()
Display the KttsMgr program so that user can configure KTTS options.
Definition: jovie.cpp:477
int getCurrentJob()
Returns the job number of the currently speaking job (any application).
Definition: jovie.cpp:393
void loadTalkers(KConfig *c)
load the talkers from the given config object
Definition: talkermgr.cpp:65
void setCallingAppId(const QString &appId)
Called by DBusAdaptor so that KTTSD knows the application that called it.
Definition: jovie.cpp:514
void setDefaultPriority(int defaultPriority)
Sets the default priority for speech jobs submitted by the application.
Definition: jovie.cpp:165
void setHtmlFilterXsltFile(const QString &htmlFilterXsltFile)
Sets the full path name to an XSLT file used to convert HTML markup to speakable form.
Definition: jovie.cpp:210
void setSsmlFilterXsltFile(const QString &ssmlFilterXsltFile)
Sets the full path name to XSLT file used to convert SSML markup to a speakable form.
Definition: jovie.cpp:220
QString applicationName() const
Returns the friendly display name for the application.
Definition: appdata.cpp:71
int getTalkerCapabilities1(const QString &talker)
Returns a bitarray giving the capabilities of a talker.
Definition: jovie.cpp:439
static QString languageCodeToLanguage(const QString &languageCode)
Converts a language code plus optional country code to language description.
Definition: talkercode.cpp:282
void setApplicationName(const QString &applicationName)
Sets the friendly display name for the application.
Definition: appdata.cpp:72
Definition: talkercode.h:38
int moveRelSentence(int jobNum, int n)
Advance or rewind N sentences in a job.
Definition: jovie.cpp:471
QStringList getTalkers()
Get a list of the talkers configured in Speech Dispatcher.
Definition: talkermgr.cpp:239
QString htmlFilterXsltFile() const
Returns the full path name of the XSLT file that performs HTML filtering on jobs for the application...
Definition: appdata.cpp:83
Definition: jovietrayicon.h:37
void init()
post ctor helper method that instantiates the dbus adaptor class, and registers
Definition: jovie.cpp:491
int say(const QString &appId, const QString &text, int sayOptions)
Queue and start a speech job.
Definition: speaker.cpp:365
void setApplicationName(const QString &applicationName)
Sets a friendly display name for the application.
Definition: jovie.cpp:134
QString talkerToTalkerId(const QString &talker)
Given a talker, returns the Talker ID for the talker.
Definition: jovie.cpp:434
void setAutoConfigureTalkersOn(bool autoConfigureTalkersOn)
Sets whether KTTSD should attempt to automatically configure talkers to meet requested talker attribu...
Definition: appdata.cpp:88
KSpeech::JobPriority defaultPriority() const
Returns the default priority (job type) for the application.
Definition: appdata.cpp:75
QStringList getJobNumbers(int priority)
Returns a list job numbers for the jobs belonging to the application with the specified priority...
Definition: jovie.cpp:405
void setDefaultPriority(KSpeech::JobPriority defaultPriority)
Set the default priority (job type) for the application.
Definition: appdata.cpp:76
QStringList getTalkerCodes()
Return a list of full Talker Codes for configured talkers.
Definition: jovie.cpp:429
QString getJobSentence(int jobNum, int sentenceNum)
Return a sentence of a job.
Definition: jovie.cpp:423
QStringList languagesByModule(const QString &module)
Definition: speaker.cpp:506
void setSentenceDelimiter(const QString &sentenceDelimiter)
Sets the GREP pattern that will be used as the sentence delimiter.
Definition: appdata.cpp:78
QString applicationName()
Returns the friendly display name for the application.
Definition: jovie.cpp:129
void stop()
Stops the message currently being spoken on a given connection.
Definition: speaker.cpp:643
QStringList outputModules()
Get the output modules available from speech-dispatcher.
Definition: speaker.cpp:501
void setAutoConfigureTalkersOn(bool autoConfigureTalkersOn)
Sets whether KTTSD will automatically attempt to configure new talkers to meet required talker attrib...
Definition: jovie.cpp:195
void setDefaultTalker(const QString &defaultTalker)
Sets the default talker code for the application.
Definition: appdata.cpp:74
void setDefaultTalker(const QString &defaultTalker)
Sets the default talker for the application.
Definition: jovie.cpp:145
QStringList languagesByModule(const QString &module)
Definition: jovie.cpp:282
bool autoConfigureTalkersOn()
Returns whether KTTSD will automatically attempt to configure new talkers to meet required talker att...
Definition: jovie.cpp:190
void moveJobLater(int jobNum)
Move a job one position down in the queue so that it is spoken later.
Definition: jovie.cpp:466
bool isSystemManager() const
Returns whether this application is a KTTS System Manager.
Definition: appdata.cpp:89
bool isSystemManager()
Returns whether this is a System Manager application.
Definition: jovie.cpp:225
void setSentenceDelimiter(const QString &sentenceDelimiter)
Sets the regular expression used to perform Sentence Boundary Detection (SBD) for the application...
Definition: jovie.cpp:175
QString ssmlFilterXsltFile()
Returns the full path name to XSLT file used to convert SSML markup to a speakable form...
Definition: jovie.cpp:215
void setIsSystemManager(bool isSystemManager)
Sets whether this application is a KTTS System Manager.
Definition: appdata.cpp:90
QString sentenceDelimiter()
Returns the regular expression used to perform Sentence Boundary Detection (SBD) for the application...
Definition: jovie.cpp:170
void setFilteringOn(bool filteringOn)
Sets the applications's current filtering enabled flag.
Definition: appdata.cpp:80
Definition: speaker.h:65
bool autoConfigureTalkersOn() const
Returns if KTTSD should attempt to automatically configure talkers to meet requested talker attribute...
Definition: appdata.cpp:87
int getJobCount(int priority)
Returns the number of jobs belonging to the application with the specified job priority.
Definition: jovie.cpp:399
void setTalker(int jobNum, const QString &talker)
Change the talker for a job.
Definition: speaker.cpp:496
int getTalkerCapabilities2(const QString &talker)
Returns a bitarray giving the capabilities of a talker.
Definition: jovie.cpp:446
QStringList getPossibleTalkers()
Get all possible talkers supported by speech-dispatcher configuration.
Definition: jovie.cpp:287
void setFilteringOn(bool filteringOn)
Sets whether speech jobs for this application are filtered using configured filter plugins...
Definition: jovie.cpp:185
QStringList getTalkerVoices(const QString &talker)
Return a list of the voice codes of voices available in the synthesizer corresponding to a talker...
Definition: jovie.cpp:453
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:32:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:32:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.