The command below will extract first 10 seconds from input.wav and stored it in output.wav

$ sox input.wav output.wav trim 0 10

Increase and Decrease Volume Using Option -v

Option -v is used to change (increase or decrease ) the volume.

Increase Volume

$ sox -v 2.0 foo.wav bar.wav

Decrease Volume

If we need to lower the volume on some files, we can lower them by using
negative numbers. Lower Negative number will get more soft .
In the following example, the 1st command (-0.5) will be louder
than the 2nd command (-0.1)

$ sox -v -0.5 srcfile.wav test05.wav

$ sox -v -0.1 srcfile.wav test01.wav

Get Audio File Information

The stat option can provide lot of statistical information about
a given audio file. The -e flag tells sox not to generate any
output other than the statistical information.

Terms and conditions

Acme Systems srl provided this documentation "as is" without warranty or guarantees of any kind.
We not provide any direct support for the Open Source software which can running on our board but, through
these pages and forum posts, we provide all of the information required to obtain the sources, install, use and update the
Open Source software available on Internet.

Please note that all of the software we talking about is Open Source so you have
to check any license provided by the software authors before using it in any commercial or non-commercial
product, by yourself.

Please contact us note that WE ARE MAINLY HARDWARE DESIGNERS and NOT LINUX GURUS and therefore could be better to post your questions to the
Acme Systems forum and ensure
that all of the site contributors and large software community can read and reply to
your questions.