asahi417 commited on
Commit
f88663e
·
1 Parent(s): c44a20d
Files changed (1) hide show
  1. push_s2t_translation.py +1 -1
push_s2t_translation.py CHANGED
@@ -58,7 +58,7 @@ for i in tqdm(list(range(line_no_start, line_no_end))):
58
  if i not in files:
59
  continue
60
  i = loader(files[i])
61
- i[f"{direction_text}.text"] = line2text[str(i)]
62
  audio_file = i[f"{direction_speech}.path"]
63
  start, end = i[f"{direction_speech}.duration_start"], i[f"{direction_speech}.duration_end"]
64
  if os.path.exists(audio_file):
 
58
  if i not in files:
59
  continue
60
  i = loader(files[i])
61
+ i[f"{direction_text}.text"] = line2text[str(i["line_no"])]
62
  audio_file = i[f"{direction_speech}.path"]
63
  start, end = i[f"{direction_speech}.duration_start"], i[f"{direction_speech}.duration_end"]
64
  if os.path.exists(audio_file):