summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-07-17 15:35:20 +0200
committerJules Laplace <julescarbon@gmail.com>2018-07-17 15:35:20 +0200
commit7991eca97c39534cf9f7896bd29a34a68b597dd2 (patch)
tree3bd50ef97ce930be7ed3a2f07178adfaedb439b0 /README.md
code structureHEADmaster
Diffstat (limited to 'README.md')
-rw-r--r--README.md35
1 files changed, 35 insertions, 0 deletions
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