After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 590163 - sound on body typing in pidgin
sound on body typing in pidgin
Status: RESOLVED OBSOLETE
Product: orca
Classification: Applications
Component: general
2.27.x
Other All
: Normal enhancement
: ---
Assigned To: Orca Maintainers
Orca Maintainers
http://launchpad.net/pidgin-typewriter
Depends on:
Blocks:
 
 
Reported: 2009-07-29 16:32 UTC by Rui Batista
Modified: 2009-11-06 15:55 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
First pass to implement sound on body typing in pdgin (2.38 KB, patch)
2009-07-29 16:47 UTC, Rui Batista
none Details | Review

Description Rui Batista 2009-07-29 16:32:21 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.
Comment 1 Rui Batista 2009-07-29 16:47:33 UTC
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

***
Comment 2 Rui Batista 2009-07-29 16:53:09 UTC
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 :).
Comment 3 Rui Batista 2009-11-06 15:48:40 UTC
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
Comment 4 Willie Walker 2009-11-06 15:55:39 UTC
(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.