title: How do you trim the audio file's end using SoX?
body: <p>Using Sox, how do I shorten an audio file by 5 seconds, trimming from the end?</p>
  
  <p>For example, this is how to trim a file from the beginning:</p>
  
  <pre><code>    sox input output trim 5000
  </code></pre>
  
  <p>This is how to add 5 seconds of silence to the end:</p>
  
  <pre><code>    sox input output pad 0 5000
  </code></pre>