title: How to split a single audio file into multiple files?
body: <p>I want to split a single audio file into multiple audio files using python and save them, the peaks in file is separated by silence.
  The audio file contains 5 A's</p>
  <p>The waveform is given below:
  <a href="https://i.stack.imgur.com/VrDbU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VrDbU.png" alt="Waveform" /></a></p>
  <p>I have tried librosa library and pydub codes for the same
  Also i have referred to this link:
  <a href="https://gist.github.com/kylemcdonald/c8e62ef8cb9515d64df4" rel="nofollow noreferrer">https://gist.github.com/kylemcdonald/c8e62ef8cb9515d64df4</a></p>
  <p>But it is cutting file into 1 second equal interval and i don't want that. I want to split the file on basis of silence</p>
  <pre><code>import librosa as l
  from scipy.io import wavfile
  audio = l.load(&quot;D:/Downloads/Voice_a.wav&quot;)[0]
  x = l.effects.trim(audio, top_db = 50)[0]
  </code></pre>
  <p>expected output is 5 different files each with a single 'A'</p>