jovie
#include <talkermgr.h>
Public Member Functions | |
~TalkerMgr () | |
bool | autoconfigureTalker (const QString &langCode, KConfig *config) |
QStringList | getTalkers () |
void | loadTalkers (KConfig *c) |
QString | talkerCodeToTalkerId (const QString &talkerCode) |
TalkerCode * | talkerToTalkerCode (const QString &talker) |
QString | userDefaultTalker () const |
Static Public Member Functions | |
static TalkerMgr * | Instance () |
Detailed Description
Definition at line 39 of file talkermgr.h.
Constructor & Destructor Documentation
TalkerMgr::~TalkerMgr | ( | ) |
Destructor.
Definition at line 56 of file talkermgr.cpp.
Member Function Documentation
bool TalkerMgr::autoconfigureTalker | ( | const QString & | langCode, |
KConfig * | config | ||
) |
Try to automatically configure a Talker in the specified language.
- Parameters
-
langCode Two-letter language code. config KConfig to be updated if successful.
- Returns
- True if successful.
If successful, the KConfig rc file is updated but the talker has not been loaded.
Definition at line 345 of file talkermgr.cpp.
QStringList TalkerMgr::getTalkers | ( | ) |
Get a list of the talkers configured in Speech Dispatcher.
Load all the configured synth plugins, populating loadedPlugIns structure.
- Returns
- A QStringList of fully-specified talker codes, one for each talker available in speech-dispatcher
Get a list of the talkers configured in KTTS.
- Returns
- A QStringList of fully-specified talker codes, one for each talker user has configured.
Definition at line 239 of file talkermgr.cpp.
|
static |
singleton accessor
Definition at line 36 of file talkermgr.cpp.
void TalkerMgr::loadTalkers | ( | KConfig * | c | ) |
load the talkers from the given config object
- Parameters
-
c KConfig object to read configured talkers from
Definition at line 65 of file talkermgr.cpp.
QString TalkerMgr::talkerCodeToTalkerId | ( | const QString & | talkerCode | ) |
Given a Talker Code, returns the Talker ID of the talker that would speak a text job with that Talker Code.
- Parameters
-
talkerCode Talker Code.
- Returns
- Talker ID of the talker that would speak the text job.
Definition at line 326 of file talkermgr.cpp.
TalkerCode * TalkerMgr::talkerToTalkerCode | ( | const QString & | talker | ) |
Given a talker code, returns the parsed TalkerCode of the closest matching Talker.
Returns a list of all the loaded plugins.
- Parameters
-
talker The talker (language) code.
- Returns
- Parsed TalkerCode structure.
The returned TalkerCode is a copy and should be destroyed by caller.
TODO: When picking a talker, KTTSD will automatically determine if text contains markup and pick a talker that supports that markup, if available. This overrides all other attributes, i.e, it is treated as an automatic "top priority" attribute.
Given a talker code, returns pointer to the closest matching plugin.
- Parameters
-
talker The talker (language) code.
- Returns
- Index to m_loadedPlugins array of Talkers.
If a plugin has not been loaded to match the talker, returns the default plugin. Given a talker code, returns pointer to the closest matching plugin.
- Parameters
-
talker The talker (language) code.
- Returns
- Pointer to closest matching plugin.
If a plugin has not been loaded to match the talker, returns the default plugin.
TODO: When picking a talker, KTTSD will automatically determine if text contains markup and pick a talker that supports that markup, if available. This overrides all other attributes, i.e, it is treated as an automatic "top priority" attribute. Given a talker code, returns the parsed TalkerCode of the closest matching Talker.
- Parameters
-
talker The talker (language) code.
- Returns
- Parsed TalkerCode structure.
If a plugin has not been loaded to match the talker, returns the default plugin.
The returned TalkerCode is a copy and should be destroyed by caller.
TODO: When picking a talker, KTTSD will automatically determine if text contains markup and pick a talker that supports that markup, if available. This overrides all other attributes, i.e, it is treated as an automatic "top priority" attribute.
Definition at line 313 of file talkermgr.cpp.
QString TalkerMgr::userDefaultTalker | ( | ) | const |
Get the user's default talker.
- Returns
- A fully-specified talker code.
- See also
- talkers
- getTalkers
Definition at line 340 of file talkermgr.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:32:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.