Blame view

egs/heroico/s5/local/get_wav_list.sh 801 Bytes
8dcb6dfcb   Yannick Estève   first commit
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
  #!/bin/bash
  
  # Copyright 2017 John Morgan
  # Apache 2.0.
  
  dir=$1
  
  tmpdir=data/local/tmp/heroico
  
  mkdir -p $tmpdir
  
  # heroico
  find \
      "$dir/speech/heroico" \
      -type f \
      -name "*.wav" \
      | \
      sort \
  	> \
  	data/local/tmp/heroico/wav_list.txt
  
  # USMA nonnative
  if [ ! -d data/local/tmp/usma/nonnative ]; then
      mkdir -p data/local/tmp/usma/nonnative
  fi
  
  find \
      "$dir/speech/usma" \
      -type f \
      -name "*.wav" \
      | \
      grep \
  	nonnative \
  	| \
      sort \
  	> \
  	data/local/tmp/usma/nonnative/wav_list.txt
  
  # USMA native
  
  if [ ! -d data/local/tmp/usma/native ]; then
      mkdir -p data/local/tmp/usma/native
  fi
  
  find \
      "$dir/speech/usma" \
      -type f \
      -name "*.wav" \
      | \
      grep \
  	-v \
  	nonnative \
  	| \
      sort \
  	> \
  	data/local/tmp/usma/native/wav_list.txt