"Untitled" By CookiePPP (https://pastebin.com/u/CookiePPP) URL: https://pastebin.com/iS5C8XxG Created on: Friday 27th of December 2019 11:44:25 PM CDT Retrieved on: Saturday 31 of October 2020 11:08:49 PM UTC # Trim the data and Convert Sampling rate to 22050Hz %%shell apt -qq install -y sox cd /content/tacotron2/wavs mkdir out mkdir out_ for f in *.wav; do # do some stuff here with "$f" # remember to quote it or spaces may misbehave #echo "$f" g="out_/${f}" sox "$f" "$g" silence 1 0.05 0.1% reverse silence 1 0.05 0.1% reverse h="out/${f}" sox "$g" -r 22050 -c 1 -b 16 "$h" > /dev/null done