sox: Fade In / Out

By | Linux

In this tutorial I will show you how to add a fade in / out to an audio file.

NOTE: you need the length of the song with soxi -d.

# fade [type] fade-in-length [stop-position(=) [fade-out-length]]
# So to fade in 5 seconds, and fade out 7 seconds:

sox input.wav output.wav fade 5 $(soxi -d input.wav) 7

Read MOAR HERE.

Leave a Reply

Your email address will not be published. Required fields are marked *