summaryrefslogtreecommitdiff
path: root/README.md
blob: 94a8deefc3c64511f984d461fd026229930dcf29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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