• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeaccessibility API Reference
  • KDE Home
  • Contact Us
 

jovie

Public Member Functions | Static Public Member Functions | List of all members
TalkerMgr Class Reference

#include <talkermgr.h>

Inheritance diagram for TalkerMgr:
Inheritance graph
[legend]

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
langCodeTwo-letter language code.
configKConfig 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.

TalkerMgr * TalkerMgr::Instance ( )
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
cKConfig 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
talkerCodeTalker 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
talkerThe 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
talkerThe 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
talkerThe 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
talkerThe 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:
  • talkermgr.h
  • talkermgr.cpp
This file is part of the KDE documentation.
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.

jovie

Skip menu "jovie"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeaccessibility API Reference

Skip menu "kdeaccessibility API Reference"
  • jovie

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal