File size: 3,554 Bytes
b184add
 
 
 
 
 
cccf8d7
b184add
 
cccf8d7
 
b184add
 
cccf8d7
 
b184add
 
cccf8d7
 
b184add
 
cccf8d7
 
b184add
 
cccf8d7
 
b184add
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
####################
# enA-jaA: 718_606 #
####################
export DIRECTION="enA-jaA"

export LINE_NO_START=0
export LINE_NO_END=50000
python download_audio.py

export LINE_NO_START=50000
export LINE_NO_END=100000
python download_audio.py

export LINE_NO_START=100000
export LINE_NO_END=150000
python download_audio.py

export LINE_NO_START=150000
export LINE_NO_END=300000
python download_audio.py

export LINE_NO_START=300000
export LINE_NO_END=360000
python download_audio.py



# server 2
export LINE_NO_START=150000
export LINE_NO_END=180000
python download_audio.py

export LINE_NO_START=180000
export LINE_NO_END=210000
python download_audio.py

export LINE_NO_START=210000
export LINE_NO_END=240000
python download_audio.py

export LINE_NO_START=240000
export LINE_NO_END=270000
python download_audio.py

export LINE_NO_START=270000
export LINE_NO_END=300000
python download_audio.py

# server 3
export LINE_NO_START=300000
export LINE_NO_END=330000
python download_audio.py

export LINE_NO_START=330000
export LINE_NO_END=360000
python download_audio.py


####################
# enA-jpn: 718_606 #
####################

git clone https://github.com/kpu/preprocess
cd preprocess
git checkout wet
git submodule update --init --recursive
mkdir build
cd build
cmake ..
make -j4
alias wet_lines="${PWD}/preprocess/build/bin/wet_lines"
wget https://dl.fbaipublicfiles.com/seamless/data/seamless.dataset.metadata.public.enA-jpn.withduration.tsv.gz
zcat seamless.dataset.metadata.public.enA-jpn.withduration.tsv.gz | egrep ^crawl-data | tr '\t' ' ' | wet_lines


export DIRECTION="enA-jpn"

export LINE_NO_START=0
export LINE_NO_END=30000
python download_audio.py

export LINE_NO_START=30000
export LINE_NO_END=60000
python download_audio.py

export LINE_NO_START=60000
export LINE_NO_END=90000
python download_audio.py

export LINE_NO_START=90000
export LINE_NO_END=120000
python download_audio.py

export LINE_NO_START=120000
export LINE_NO_END=150000
python download_audio.py

# server 2
export LINE_NO_START=150000
export LINE_NO_END=180000
python download_audio.py

export LINE_NO_START=180000
export LINE_NO_END=210000
python download_audio.py

export LINE_NO_START=210000
export LINE_NO_END=240000
python download_audio.py

export LINE_NO_START=240000
export LINE_NO_END=270000
python download_audio.py

export LINE_NO_START=270000
export LINE_NO_END=300000
python download_audio.py

# server 3
export LINE_NO_START=300000
export LINE_NO_END=330000
python download_audio.py

export LINE_NO_START=330000
export LINE_NO_END=360000
python download_audio.py




export LINE_NO_START=360000
export LINE_NO_END=390000
python download_audio.py

export LINE_NO_START=390000
export LINE_NO_END=420000
python download_audio.py

export LINE_NO_START=420000
export LINE_NO_END=450000
python download_audio.py

# server 4
export LINE_NO_START=450000
export LINE_NO_END=480000
python download_audio.py

export LINE_NO_START=480000
export LINE_NO_END=510000
python download_audio.py

export LINE_NO_START=510000
export LINE_NO_END=540000
python download_audio.py

export LINE_NO_START=540000
export LINE_NO_END=570000
python download_audio.py

export LINE_NO_START=570000
export LINE_NO_END=600000
python download_audio.py


# server 5
export LINE_NO_START=600000
export LINE_NO_END=630000
python download_audio.py

export LINE_NO_START=630000
export LINE_NO_END=660000
python download_audio.py

export LINE_NO_START=660000
export LINE_NO_END=690000
python download_audio.py

export LINE_NO_START=690000
export LINE_NO_END=720000
python download_audio.py