-
Notifications
You must be signed in to change notification settings - Fork 0
/
veprad.train.fileids.sh
executable file
·63 lines (59 loc) · 1.37 KB
/
veprad.train.fileids.sh
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
57
58
59
60
61
62
63
#!/bin/bash
x=1
while [ $x -le 9 ]
do
for file in /home/mirko/CMUSphinx/wav/VEPRAD/www.inf.uniri.hr/~ivoi/CROSPEECH/podaci/06_02/Muski/m0$x/*.wav
do
PATHNAME=$(echo ${file%%.wav})
echo $PATHNAME > tmp
NAME=$(cut -c 27-150 m)
echo $NAME
TEXT=$(echo $NAME)
echo $TEXT >> veprad.train.fileids
done
x=$(( $x + 1 ))
done
y=0
while [ $y -le 1 ]
do
for file in /home/mirko/CMUSphinx/wav/VEPRAD/www.inf.uniri.hr/~ivoi/CROSPEECH/podaci/06_02/Muski/m1$y/*.wav
do
PATHNAME=$(echo ${file%%.wav})
echo $PATHNAME > tmp
NAME=$(cut -c 27-150 m)
echo $NAME
TEXT=$(echo $NAME )
echo $TEXT >> veprad.train.fileids
done
y=$(( $y + 1 ))
done
z=1
while [ $z -le 9 ]
do
for file in /home/mirko/CMUSphinx/wav/VEPRAD/www.inf.uniri.hr/~ivoi/CROSPEECH/podaci/06_02/Zenski/z0$z/*.wav
do
PATHNAME=$(echo ${file%%.wav})
echo $PATHNAME > tmp
NAME=$(cut -c 27-150 m)
echo $NAME
TEXT=$(echo $NAME )
echo $TEXT >> veprad.train.fileids
done
z=$(( $z + 1 ))
done
d=0
while [ $d -le 1 ]
do
for file in /home/mirko/CMUSphinx/wav/VEPRAD/www.inf.uniri.hr/~ivoi/CROSPEECH/podaci/06_02/Zenski/z1$d/*.wav
do
PATHNAME=$(echo ${file%%.wav})
echo $PATHNAME > tmp
NAME=$(cut -c 27-150 m)
echo $NAME
TEXT=$(echo $NAME )
echo $TEXT >> veprad.train.fileids
done
d=$(( $d + 1 ))
done
awk '!/index/' veprad.train.fileids > temp && mv temp veprad.train.fileids
rm tmp*