Bug 95529 - add ktts support to kopete
Summary: add ktts support to kopete
Status: REPORTED
Alias: None
Product: kopete
Classification: Applications
Component: New plugin wishes (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-20 19:16 UTC by Christian Weilbach
Modified: 2009-02-01 17:27 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Weilbach 2004-12-20 19:16:34 UTC
Version:            (using KDE KDE 3.3.2)
Installed from:    Gentoo Packages
OS:                Linux

it would be great to have a plugin for ktts in kopete in kde 3.4, so you can just hear the new messages and keep working...
Comment 1 Olivier Goffart 2004-12-20 19:33:34 UTC
Notes:
- it's too late for KDE 3.4, the feature list is already frezee. (Maybe for KDE 4 if someone code it)
- The best way to have something implemented is to do it yourslef :-)

Comment 2 Christian Weilbach 2004-12-20 19:45:58 UTC
We don't have a full feature freeze yet, new features must be reviewed only. Since this is not a big change to architecture nor to kopete code, it should still be possible to add it to kde 3.4. I'm currently learning kde programming, but I'm still an absolute newbie, so sorry for that :(
Comment 3 Matt Rogers 2004-12-20 22:17:00 UTC
Unless the feature is in the feature list on developer.kde.org, it can't be 
added, so this will have to wait until KDE 4

Comment 4 Gary Cramblitt 2004-12-22 01:00:30 UTC
Does Kopete support KNotify of messages?  If so, KTTSD already supports speaking messages.  Just configure notification in Kopete and check the KNotify box in kttsmgr.
Comment 5 Jason Keirstead 2004-12-22 01:32:56 UTC
On December 21, 2004 08:00 pm, Gary Cramblitt wrote:
> ------- Additional Comments From garycramblitt comcast net  2004-12-22
> 01:00 ------- Does Kopete support KNotify of messages?  If so, KTTSD
> already supports speaking messages.  Just configure notification in Kopete
> and check the KNotify box in kttsmgr.

Kopete supports KNotify, but it doesn't put the whole text of the message in 
the notification.

So, kttsd would just say "User Foo has sent a message", not what the message 
was.

Comment 6 Gary Cramblitt 2004-12-22 02:35:18 UTC
That's a shame.  A quick fix would be to also notify the msg itself, but then there might be concerns with long messages in screen popups, so you'd want an option to control that, or truncate msgs to some limit, say 80 chars.
Comment 7 Mauricio Bahamonde 2005-01-03 16:29:42 UTC
Hi,
	A few days ago, Duncan told me about bug:95529 and asked me if I would like 
to try to make a plugin for that because it was relatively simple to do. As 
i'm new to KDE Development, I agreed because it would be a great oportunity 
to learn more and get more involved in KDE, so I started writing it, and I 
think I had success, the plugin does what it's expected to do, no more, no 
less ;-)
Well, the plugin basically "Speaks the incoming messages" through KTTSD, so 
you can be working and not paying attention to kopete, and if you receive a 
message, you will hear it through your speakers ;-) I think it may be useful 
too for disabled people.

For this plugin to work, you need:
- A speech synthesis engine (Like festival)
- Recent kdelibs from CVS HEAD
- kde-accessibility module

I think that's the minimium requirements. You can check 
http://accessibility.kde.org/developer/kttsd/index.php for more info.

Once kttsd is working, the plugin should work with no problems.
You can find the plugin at http://ktown.kde.cl/~elkrammer/kde/speech.tar.gz
Untar that file in kdenetwork/kopete/plugins, it should create a subdirectory 
called speech.
Then edit kdenetwork/kopete/plugins/Makefile.am and in the SUBDIRS line, add 
"speech" without quotes. Well, I guess you guys know this better than me ;-)

Please, give me feedback on this. 

Greetings,

Comment 8 Conrad Hoffmann 2005-01-03 17:03:47 UTC
I'm sorry for maybe beeing a little late with this, but:
i once wrote a plugin for exactly this sort of stuff, which i still maintain and use with current Kopete CVS. it only uses festival as backend, but that would obviously be easy to change. it has a whole lot of settings i like, like you can  choose between announce incoming messages, read the whole incoming message and, most important: you can configure it per contact, because having all messages read out loud can be quite annoying. i postet it on the ML before, but it never got picked up, which i don't mind, because its more for kdeaddons. but maybe mauricio can take some of my code or vice versa to enhance the plugin. you can find it at http://conrausch.doesntexist.com/festival

mfg, conrausch
Comment 9 Mauricio Bahamonde 2005-01-03 17:22:55 UTC
Conrad,
Your plugin is much more powerful than mine's, the only problem with it is that you MUST be using festival, in that sence, mine's more flexible, because it uses KTTSD which let's you select the speech synth engine, the voices, language, speed, and output engine like arts or gstreamer.
I really like the features your plugin has, like the ability to say the name of the person who wrote you, and select which contacts the messages should be speaked from. I will have a look at your plugin code and see if i can implement some features.

Greetings,
Mauricio.
Comment 10 S. Burmeister 2005-01-17 22:57:46 UTC
Didn't Contrad say that it would be no problem to change the engine to ktts? If so, why not simply change it and get the whole bunch of features without having to code them again?
Comment 11 Conrad Hoffmann 2005-04-25 16:53:47 UTC
i moved and did not have any internet connection for a while. but now i am back and i am currently using my festival plugin ported to use the ktts backend...
i will release the code after a few cosmetic changes (GUI doesnt match functionality). now, that kopete installs headers, could someone give a hint how to create a standalone plugin installation? i am always working in the current cvs tree..

mfg, conrausch
Comment 12 Conrad Hoffmann 2005-05-02 17:01:46 UTC
i just finished porting the festival plugin i once wrote to use the KTTS 
subsystem andm while i was at it, to use KConfigXT. the first usable version 
along with some short instructions can be found at 
http://conrausch.doesntexist.com/kopete/ktts 

since kopete now installs headers, i went ahead and made it a standalone build 
against installed kopete/kde headers, which makes installation quite fast & 
simple.

some feedback would be greatly appreciated
Comment 13 Christian Weilbach 2005-09-04 16:50:20 UTC
i tested the plugin some time ago with kde 3.4 and it works like a charme. maybe i've the time to test it with 3.5 svn also;-). what about a release at kde-apps.org? since it is an addon now, you could simply release it there...
Comment 14 Conrad Hoffmann 2005-11-23 02:24:01 UTC
sorry, forgot to post that here!
http://www.kde-apps.org/content/show.php?content=30900
Comment 15 Christian Weilbach 2009-02-01 17:27:31 UTC
Still not in KDE 4.2, what about accessibility?