Is there a program that will emulate typewriter sounds?

Since I switched to Ubuntu 12.04 I'd only missed one thing.

A program which could launch typewriter sounds while typing. For instance, in Windows I used this: http://www.colorpilot.com/soundpilot.html for a long time.

I learned then that this writing program: http://gottcode.org/focuswriter/ had the sounds but only for the program itself.

However, sometimes I'm writing an email, writing on the web or doing more complex writing tasks in LibreOffice - all places where these long missed typing sounds don't apply.

Does any of you know of any plans in the community of the sound bit - typing sounds - as an independent program or applet to be fetched in the Ubuntu Software Center soon?


Solution 1:

There are some implementations to play a sound for every keypress, one of them is "keypress" on Github.com, made by Github user "chrelad". It's a fork of linux-typewriter.

Instructions on how to set it up:

  1. Open a terminal (Ctrl+Alt+T).

  2. Install the package python-xlib.

    sudo apt-get install python-xlib
    
  3. Download the application:

    wget -O keypress.tar.gz https://github.com/chrelad/keypress/tarball/master
    tar xvfz keypress.tar.gz && cd chrelad*
    
  4. Start it by executing

    ./keypress.py
    
  5. Optional: You can change the sound by opening the file keypress.py with an editor and look out for the line that says

            os.system("aplay sounds/key01.wav")
    

Now change key01.wav to what you want it to sound like.


To restart it after the reboot:

  1. Open a terminal.

  2. Type: cd chrelad* && ./keypress.py