Skip to content

Instantly share code, notes, and snippets.

@erzk
Created February 24, 2019 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erzk/5b28ae422b8a5cef91f91967c657bf9c to your computer and use it in GitHub Desktop.
Save erzk/5b28ae422b8a5cef91f91967c657bf9c to your computer and use it in GitHub Desktop.
Split continuous audio files on occurrence of silence
#!/usr/bin/env python
import glob, os
for file in sorted(glob.glob("*.wav")):
print("#"*40)
print(file)
os.system("python audioAnalysis.py silenceRemoval -i " + file + " --smoothing 0.2 --weight 0.1")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment