asahi417 commited on
Commit
d094b53
1 Parent(s): 436c948
Files changed (2) hide show
  1. fetch_dataset_s2t.py +1 -1
  2. main_s2t.sh +4 -4
fetch_dataset_s2t.py CHANGED
@@ -10,7 +10,6 @@ from tqdm import tqdm
10
  from multiprocessing import Pool
11
  from typing import Optional, Dict
12
  from glob import glob
13
- # import librosa
14
 
15
  import pandas as pd
16
  import soundfile as sf
@@ -108,6 +107,7 @@ def cleanup(features, feature_file):
108
 
109
 
110
  def get_audio(dataframe: pd.DataFrame):
 
111
  features = {"line_no": int(dataframe.pop('line_no').values[0])}
112
  if str(features["line_no"]) not in line_no_to_text:
113
  return None
 
10
  from multiprocessing import Pool
11
  from typing import Optional, Dict
12
  from glob import glob
 
13
 
14
  import pandas as pd
15
  import soundfile as sf
 
107
 
108
 
109
  def get_audio(dataframe: pd.DataFrame):
110
+ dataframe.pop("side")
111
  features = {"line_no": int(dataframe.pop('line_no').values[0])}
112
  if str(features["line_no"]) not in line_no_to_text:
113
  return None
main_s2t.sh CHANGED
@@ -31,18 +31,18 @@ export DIRECTION_TEXT="jpn"
31
  export LINE_NO_START=0
32
  export LINE_NO_END=10
33
  python fetch_dataset_s2t.py
34
- # DOWNLOAD AUDIO
35
- for i in $(seq 91 100);
36
  do
37
  export N_POOL=15
38
  export DATASET_ID=${i}
39
- export DIRECTION="enA-jpn"
 
40
  export LINE_NO_START=$(((DATASET_ID-1) * 2500))
41
  export LINE_NO_END=$((DATASET_ID * 2500))
42
  echo ${LINE_NO_START}
43
  python fetch_dataset_s2t.py
44
  done
45
-
46
  # text
47
  export DIRECTION_SPEECH="enA"
48
  export DIRECTION_TEXT="jpn"
 
31
  export LINE_NO_START=0
32
  export LINE_NO_END=10
33
  python fetch_dataset_s2t.py
34
+ # audio
35
+ for i in $(seq 1 60);
36
  do
37
  export N_POOL=15
38
  export DATASET_ID=${i}
39
+ export DIRECTION_SPEECH="enA"
40
+ export DIRECTION_TEXT="jpn"
41
  export LINE_NO_START=$(((DATASET_ID-1) * 2500))
42
  export LINE_NO_END=$((DATASET_ID * 2500))
43
  echo ${LINE_NO_START}
44
  python fetch_dataset_s2t.py
45
  done
 
46
  # text
47
  export DIRECTION_SPEECH="enA"
48
  export DIRECTION_TEXT="jpn"