Get the average intensity for all files in a directory

This script will open all the files in the subfolders within a given directory and take the average intensity of the words on a given duration tier. 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. The output will contain intensity measurements for all the files within each subfolder and will be saved in one .txt document in the parent “path” folder.

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