Results 1 to 5 of 5

Thread: adding sound command

  1. #1
    Join Date
    Feb 2005
    Location
    Highland Park, NJ USA
    Beans
    17

    adding sound command

    I am new to linux. I have a program I run called mail-notification. There is a section for commands:

    1. Mail reader: firefox http://gmail.com
    2. When new mail arrives:
    3. When all mail is read

    As you can see I use Gmail and have added the command: firefox http://gmail.com

    I would like to play a .wav file in the command When new mail arrives:

    the .wav file is located in /home/chris/ problem is I don't know the command to play a sound

  2. #2
    Join Date
    Jan 2005
    Location
    Norway
    Beans
    35

    Re: adding sound command

    are you asking to play a sound file when you receive a new email in your gmail account while using firefox?

    I dont think there is anything that can be done about that, but if you mean thunderbird.. then... there is a section there, somewhere where you can change that...

  3. #3
    Join Date
    Feb 2005
    Location
    Highland Park, NJ USA
    Beans
    17

    Re: adding sound command

    Quote Originally Posted by gogodidi
    are you asking to play a sound file when you receive a new email in your gmail account while using firefox?

    I dont think there is anything that can be done about that, but if you mean thunderbird.. then... there is a section there, somewhere where you can change that...
    No I am looking for the command to play a sound file, with some Linux it's play or splay, but neither seems to work

  4. #4
    Join Date
    May 2005
    Location
    Istanbul
    Beans
    262
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: adding sound command

    Quote Originally Posted by csindone View Post
    I am new to linux. I have a program I run called mail-notification. There is a section for commands:

    1. Mail reader: firefox http://gmail.com
    2. When new mail arrives:
    3. When all mail is read

    As you can see I use Gmail and have added the command: firefox http://gmail.com

    I would like to play a .wav file in the command When new mail arrives:

    the .wav file is located in /home/chris/ problem is I don't know the command to play a sound
    You should install esound-clients first:

    Code:
    sudo apt-get install esound-clients
    Then you can use this command to play a sound:

    Code:
    esdplay /home/filename.wav
    Last edited by ryu kun; September 11th, 2006 at 02:59 PM.

  5. #5
    Join Date
    Mar 2007
    Beans
    2
    Distro
    The Feisty Fawn Testing

    Re: adding sound command

    Although noting the date on this thread, I think some good information could be contributed for future reference, which would have especially helped me.
    For one, there is now a shell script released under the GPL2 licence http://matthew.ruschmann.net/blog/Li...gmail-1.1.html which allows you to have gmail as your default mailer, rather than firefox pointing to the site in all cases... so you can open a specific message in mail-notify upon recieving a mail, rather than having 'firefox www.gmail.com' in your gnome preferred applications or going through evolution.
    The other thing, is that in feisty at least, the 'play' command comes in the 'sox' package from the universe repository [esounds didn't work for me].
    So if the repository is enabled you can do this in a terminal.
    Code:
    sudo apt-get install sox
    And then use this example to play a sound:
    Code:
    play ../../home/<USER>/<PATHTOSOUND>/sound.wav
    Sorry if this is obvious, but I think it can be a good reference when you find information through searching the ubuntu forums.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •