1

I have an Audio file which is in wav format. The length of an audio file (considering) is of 120sec, i.e. 12000ms.

I have dictionary of start and end time as {'start': 2432, 'stop': 6732}, {'start': 10676, 'stop': 18716}. I have to slice this particular amount of time from the same 12000ms audio file. Finally I have to save it to two .wav files in a folder. Is there any python library or function on any code so I can use it easily to integrate into my project. Thanks

martineau
  • 119,623
  • 25
  • 170
  • 301
bharath
  • 21
  • 4
  • 1
    Possible duplicate: https://stackoverflow.com/questions/37999150/python-how-to-split-a-wav-file-into-multiple-wav-files/43367691 –  Dec 13 '19 at 08:20
  • Does this answer your question? [Python, How to split a .wav file into multiple .wav files](https://stackoverflow.com/questions/37999150/python-how-to-split-a-wav-file-into-multiple-wav-files) –  Dec 13 '19 at 08:23
  • [MoviePy](https://zulko.github.io/moviepy/ref/AudioClip.html#audiofileclip) can work also with audio files. It uses `FFMPEG` library/program so probably [pyffmpeg](https://mhaller.github.io/pyffmpeg/) or [ffmpeg-python](https://github.com/kkroening/ffmpeg-python) should also do this – furas Dec 13 '19 at 09:10
  • yeah i found the solution. how can i save those in folder iteratively. my question is not completely solved. Thanks – bharath Dec 17 '19 at 12:05

0 Answers0