KNotify is the notification subsystem within KDE, which alerts you to events you configure within the KDE system. You can configure KTTS to speak text notifications.
For example, Konversation, a KDE IRC application, permits you to configure a wide variety of notifications. For instance, you can tell Konversation to notify you whenever a message appears in an IRC channel with your nickname in it. Together with KTTS you can have KDE speak the text of the IRC message to you.
In general, if a KDE application supports KNotify, a Notifications menu item will appear under the application's Settings menu. The specifics for configuring each application with KNotify vary from application to application.
To enable KTTS to speak KNotify text notifications, start kttsmgr and click the Notifications tab. The Notifications screen appears.
![]() | Check this box to enable speaking of KDE notifications. If unchecked, everything else on this screen is disabled and KTTS does not speak any notifications. |
![]() | When checked, any application that sends an event with a sound will not be spoken by KTTS. |
![]() | Use these buttons to add or delete application events from the list below. When you click the button, a screen appears in which you select the application and event you want to add to the list. |
![]() | This event will speak the message Konversation sends when someone mentions your nickname in an Internet Relay Chat message. |
![]() | For all other events coming from Konversation, no action will be taken in KTTS. |
![]() | For all events not otherwise specified in the list, no action will be taken in KTTS. |
![]() | Use this box to specify what KTTS should do when it receives an event. Your choices are:
|
![]() | If the action is Speak custom text, enter the text of the message you would like spoken here. Within the message, you may use the following substitution strings:
|
![]() | Test the message by clicking here. |
![]() | You may specify the attributes of the
desired talker to speak the notification message here.
|
Notice there are three levels of events. If an action for a specific event of a specific application is specified, that action is taken. Otherwise, if an action for all other events of a specific application is specified, that action is taken. Otherwise, the action specified for all other events under Default (all other events) is taken.
The event all notifications for application Default (all other events) may not be deleted from the list. For the default all other events, you may specify the kind of notifications that are spoken, as follows:
None will be spoken.
Notifications that display a dialog on your screen, that you must then dismiss, will be spoken.
Notifications that display a passive dialog on your screen, that automatically disappear after a moment, will be spoken.
Notifications that display on screen, passively or not, will be spoken.
All notifications, regardless of whether they produce a display on screen, will be spoken.
String Replacer filters are a good way to clean up messages
sent from applications if they are mispronounced or misspoken in
KTTS. The kmail.xml
file, which
comes with KTTS, is a good example. It removes br,
and b tags from the KMail notification messages and also removes the
phrase /local/inbox/, since this
may be safely assumed in most cases. See the section called “Configuring String Replacer Filters”.
Use the button to save your notification settings to a file. Use the button to load saved settings from a file. The loaded events are merged with existing events in the list. If you want to start with an empty event list, click the button first. All events except for all notifications will be erased.
Be sure to click or to save your settings.
Would you like to make a comment or contribute an update to this page?
Send feedback to the KDE Docs Team