GNOME Bugzilla – Bug 590163
sound on body typing in pidgin
Last modified: 2009-11-06 15:55:39 UTC
A very used feature of the JAWS for Windows screenreader in msn messenger is playing sounds when a body is typing. The sound used on those scripts is kind ouf a keyboard or typewriter typing sound that's plays while the body typing notification is visible. I thought due the developments in orca general audio (bug #400729) this would be a good use case for people to test. There are many things to take in consideration on implementing this feature. We must choose between a looping a sound while body is typing, playing just on the first typing notification and playing on typing and stop typing. The looping alternative seems almost impossible for now because there is no easy way to loop sounds using the current orca audio code. We could play a sound on each detected typing notification(like the JAWS scripts do) but that just works in msn, I think. There is also no easy way to detect body stop typing notifications with the current code. Maby with some hack like that for the body typing or, a bit of a crazy idea, using pidgin's d-bus api to do that and hopefuly some other things. On the other hand I think the sound on body typing must play only when the body window is focused. There is no point of sound of body typing when not knowing witch body it is.
Created attachment 139488 [details] [review] First pass to implement sound on body typing in pdgin This patch adds two new settings to the pidgin script_settings module: * playSounBodyTyping --> wether to play sounds when pidgin body is typing * bodyTypingSound --> path of the sound to play These settings default to False and None respectively so to test the functionality you must override them. The best way I found to do that is creating a pidgin-customizations file. So place the following in ~/.orca/app-settings/pidgin-customizations.py: *** import orca.scripts.apps.pidgin.script_settings as script_settings script_settings.playSoundOnBodyTyping = True script_settings.bodyTypingSound = "/usr/share/sounds/question.wav" *** I don't know if this is really needed but if you don't have a pidgin.py file in .orca/app-settings create one with the following to import the customizations: *** try: __import__("app-settings.pidgin-customizations") except ImportError: passtry: __import__("app-settings.pidgin-customizations") except ImportError: pass ***
Sorry for the spam but: The pidgin-customizations.py file is for ubuntu users, it will play the login and question sound. Just change the path for another wav sound :).
Hi, I decided to implement this feature on a pidgin plugin. This way the functionality doesn't depend from orca and users not using orca can use it too. The plugin is called pidgin-typewriter (it plays a typewriter sound :)). URL: http://launchpad.net/pidgin-typewriter
(In reply to comment #3) > I decided to implement this feature on a pidgin plugin. This way the > functionality doesn't depend from orca and users not using orca can use it too. Woo hoo! Thanks, and I think you've chosen the better approach.