Eli Fulkerson .com HomeProjectsCommandline-wav-player
 

sounder.exe - play a wav file from the command line

Description:

Sounder.exe plays .wav files from the command line. It was written to provide audible alerts to windows batch files.

Be aware: I have been getting reports from users that Windows Defender and Virustotal think that sounder is a virus. I pulled it down, rebuilt it, put it back up - and my Windows Defender promptly deleted it. Then it deleted wget. Then I deleted Windows Defender. Its as good as I can make it - if you have concerns about its safety I invite you to build from source.


Usage: sounder [/stop] [/loop times] [/timer ms] [/help]  filename.wav

Options:
    /stop           Creates the file "stopfile" in the current directory, which will stop preexisting playback
    /loop times     Plays the wav file "times" times before exiting
    /timer ms       Stops after "ms" milliseconds, even if the sound isn't done
    /help           Shows this help screen.
    /id             Specify a custom stopfile id to stop this sound individually
    /stopbyid       Creates the stopfile specified by /id, which will stop all prexisting matching sounds
    /unique         Will not start playing a sound if another /unique sound with the same /id is already playing.

Options are provided in both the windows and unix styles.  The flags "-s", "/s", "/stop", "-l", "/l", "/loop", "-t", "/t", 
"/timer", "-h", "/?", "/help", "/h", "-v", "/v", "/version" all work but are omitted above for brevity.

In order to use the "stopfile" functionality, the working directory must be writable. 

Examples:

Its getting a little complicated, so for instance if you have two alarms, one alerting you to ducks and the other alerting you to bears, but want no more than one copy of each .wav playing simultaneously...

sounder.exe /id bears /stopbyid bears.wav
sounder.exe /id ducks /stopbyid ducks.wav

Those commands can be spammed - at any given time they will stop the playback of the specific wave file and start another, but won't interfere with the other wave file.

To make all the sound stop, regardless of /id, you can issue a "sounder.exe /stop". To make all sound stop and play a new .wav file issue a "sounder.exe /stop newfile.wav". (stops existing playback, then plays newfile.wav)

Download:


Listing directory https://download.elifulkerson.com/files/sounder/June2016: sounder-src.zip October 15 2017 18:46:58 31882 Zip archive data, at least v2.0 to extract sounder-src.zip.asc October 15 2017 18:49:32 801 GnuPG signature sounder-src.zip.md5 October 15 2017 18:49:32 50 MD5 checksum sounder-src.zip.sha1 October 15 2017 18:49:32 58 SHA1 checksum sounder-src.zip.sha256 October 15 2017 18:49:32 82 SHA256 checksum sounder-src.zip.sha512 October 15 2017 18:49:32 146 SHA512 checksum sounder.exe October 15 2017 18:44:18 32768 PE32 executable (GUI) Intel 80386 Mono/.Net assembly, for MS Windows sounder.exe.asc October 15 2017 18:48:12 801 GnuPG signature sounder.exe.md5 October 15 2017 18:48:12 46 MD5 checksum sounder.exe.sha1 October 15 2017 18:48:12 54 SHA1 checksum sounder.exe.sha256 October 15 2017 18:48:12 78 SHA256 checksum sounder.exe.sha512 October 15 2017 18:48:12 142 SHA512 checksumBrowse the download server

Old Versions:

sounder.exe - 2016 update, with possible /vol fix. I'm getting reports of weird behavior, but it seems to be somewhat platform specific (I can't always duplicate it)
sounder.exe - 2016 update, with /vol option
sounder.exe - 2013 version This is the old "play the whole file, then exit" version:

sounder.exe, win32 console application
source code

This is the old "play first two seconds asynchronously" version:

sounder.exe, win32 console application
sounder.exe, win32 console application, zipped
source code

This is the old "play until the file 'stopfile' is created" version:

sounder2.exe, win32 console application
sounder2 source code

See also:

vid.zip - similarly, play a video file full screen
voice.exe - commandline text to speech