asahi417 commited on
Commit
af5bf83
1 Parent(s): 4fefb4c
Files changed (2) hide show
  1. download_audio.py +2 -1
  2. main.sh +43 -0
download_audio.py CHANGED
@@ -20,8 +20,9 @@ direction = os.getenv("DIRECTION", "enA-jaA")
20
  sides = set(direction.split("-"))
21
  cache_dir_audio = p_join("download", "audio", direction)
22
  cache_dir_feature = p_join("download", "feature", direction)
23
- os.makedirs(cache_dir_audio, exist_ok=True)
24
  os.makedirs(cache_dir_feature, exist_ok=True)
 
 
25
  # processor config
26
  n_pool = int(os.getenv("N_POOL", 8))
27
  wget_max_retry = os.getenv("MAX_RETRY", "1")
 
20
  sides = set(direction.split("-"))
21
  cache_dir_audio = p_join("download", "audio", direction)
22
  cache_dir_feature = p_join("download", "feature", direction)
 
23
  os.makedirs(cache_dir_feature, exist_ok=True)
24
+ for s in sides:
25
+ os.makedirs(p_join(cache_dir_audio, s), exist_ok=True)
26
  # processor config
27
  n_pool = int(os.getenv("N_POOL", 8))
28
  wget_max_retry = os.getenv("MAX_RETRY", "1")
main.sh CHANGED
@@ -4,25 +4,68 @@
4
  export DIRECTION="enA-jaA"
5
 
6
  export LINE_NO_START=0
 
 
 
 
7
  export LINE_NO_END=50000
8
  python download_audio.py
9
 
10
  export LINE_NO_START=50000
 
 
 
 
11
  export LINE_NO_END=100000
12
  python download_audio.py
13
 
14
  export LINE_NO_START=100000
 
 
 
 
15
  export LINE_NO_END=150000
16
  python download_audio.py
17
 
18
  export LINE_NO_START=150000
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  export LINE_NO_END=300000
20
  python download_audio.py
21
 
22
  export LINE_NO_START=300000
 
 
 
 
 
 
 
 
23
  export LINE_NO_END=360000
24
  python download_audio.py
25
 
 
 
 
26
  ######################
27
  # enA-jpn: 1_468_292 #
28
  ######################
 
4
  export DIRECTION="enA-jaA"
5
 
6
  export LINE_NO_START=0
7
+ export LINE_NO_END=25000
8
+ python download_audio.py
9
+
10
+ export LINE_NO_START=25000
11
  export LINE_NO_END=50000
12
  python download_audio.py
13
 
14
  export LINE_NO_START=50000
15
+ export LINE_NO_END=75000
16
+ python download_audio.py
17
+
18
+ export LINE_NO_START=75000
19
  export LINE_NO_END=100000
20
  python download_audio.py
21
 
22
  export LINE_NO_START=100000
23
+ export LINE_NO_END=125000
24
+ python download_audio.py
25
+
26
+ export LINE_NO_START=125000
27
  export LINE_NO_END=150000
28
  python download_audio.py
29
 
30
  export LINE_NO_START=150000
31
+ export LINE_NO_END=175000
32
+ python download_audio.py
33
+
34
+ export LINE_NO_START=175000
35
+ export LINE_NO_END=200000
36
+ python download_audio.py
37
+
38
+ export LINE_NO_START=200000
39
+ export LINE_NO_END=225000
40
+ python download_audio.py
41
+
42
+ export LINE_NO_START=225000
43
+ export LINE_NO_END=250000
44
+ python download_audio.py
45
+
46
+ export LINE_NO_START=250000
47
+ export LINE_NO_END=275000
48
+ python download_audio.py
49
+
50
+ export LINE_NO_START=275000
51
  export LINE_NO_END=300000
52
  python download_audio.py
53
 
54
  export LINE_NO_START=300000
55
+ export LINE_NO_END=325000
56
+ python download_audio.py
57
+
58
+ export LINE_NO_START=325000
59
+ export LINE_NO_END=350000
60
+ python download_audio.py
61
+
62
+ export LINE_NO_START=350000
63
  export LINE_NO_END=360000
64
  python download_audio.py
65
 
66
+
67
+
68
+
69
  ######################
70
  # enA-jpn: 1_468_292 #
71
  ######################