On Saturday, December 16, 2017 at 10:59:06 AM UTC-8, Cecil Westerhof wrote:
> At the moment I have a Bash script in which I use:
> play --no-show-progress -n synth .25 vol .1
>
> to give a notification sound.
>
> I am thinking about rewriting the script into a TCL script. The
> command I use is an external command, but I was wondering if I could
> make the script OS independent. But until now I did not find
> something. Is there a way to do this, or not?
The SoX toolkit is available for Windows also.
I cannot seem to get it to play though.
Maybe you will have better luck.
(copy sox.exe to play.exe)
C:\Program Files (x86)\sox-14-4-2>play.exe --no-show-progress -n synth .25 vol .1
play.exe FAIL sox: Sorry, there is no default audio device configured
Some people say that using version 14.4.1 works for them.
I have a VLC interface written:
http://wiki.tcl.tk/48382
This would be much heavier resource usage
and you would have to pre-generate your sound files.
More complicated to use, but certainly cross platform.