I wrote the function below that given a WaveStream will cut a segment of its audio, for example I can use it to cut 30 seconds of a music file as I represented
WaveStream