Sunday 29 April 2018

Playing a sound alert

I found an interesting way to generate sound alerts after a task gets finished. You can install sox with which you can generate sounds. A simple command such as play -n synth 0.2 sin 440 can help generate a audio beep which can indicate a build done or some other alert.

In the above command -n specifies a null file i.e. do not generate a file, synth 0.2 tells how many seconds and sin 400 tells a sine way of 440 Hz.

 

No comments:

Post a Comment