From 7991eca97c39534cf9f7896bd29a34a68b597dd2 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 17 Jul 2018 15:35:20 +0200 Subject: code structure --- README.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100644 index 0000000..94a8dee --- /dev/null +++ b/README.md @@ -0,0 +1,35 @@ +# sort-wav-pairs + +Given two directories of audio files with random names, give the ability to drag them into the correct order, then save the order, and eventually rename them. + +## Preparing the data + +Normalize all audio files and convert to wav: + +``` +pip install ffmpeg-normalize + +# assuming your files are 'raw/{speaker}/*.aif'... + +mkdir -p normalized +for d in raw/* +do + dir=${d/raw/normalized} + echo $dir + mkdir -p $dir + cd $d + for i in *.aif + do + o=${i/aif/wav} + echo "../../$dir/$o" + ffmpeg-normalize -o "../../$dir/$o" -v "$i" + done + cd ../.. +done +``` + +Move the normalized folder to './public/data' in this repo. + +- button to SAVE the order +- load stored json +- load json and copy all the files -- cgit v1.2.3-70-g09d2