silence out regions of audio based on a list of time stamps , using sox and python
问题 I have an audio file. I have a bunch of [start, end] time stamp segments. WHAT I WANT TO ACHIEVE: Say audio is 6:00 minutes long. Segments I have are : [[0.0,4.0], [8.0,12.0], [16.0,20.0], [24.0,28.0]] After I pass these two to sox + python , out put should be audio that is 6 minutes long, but has audio only in the times passed by the segments. i.e I want to pass the time stamps and original audio to SOX + python so that an audio with everything silenced out except for those portions