Trim .wav files to zero crossings

This Praat script will open all .wav files in the subfolders of a parent directory and edit them so that they begin and end on the first and last zero crossing. The parent “path” folder may have several subfolders within it, this script will open all of these subfolders and processes all of the files within them. These newly edited files will be saved in a subfolder within each subfolder with the prefix “zero_cross-” added to the name of the original files.

by Michelle Sims, University of Alberta, Alberta Phonetics Lab, May 2012