catiR commited on
Commit
cc178c4
·
1 Parent(s): 86e56e5
Files changed (1) hide show
  1. scripts/runSQ.py +5 -3
scripts/runSQ.py CHANGED
@@ -32,6 +32,8 @@ def run(sentence, voices):
32
  if voices:
33
  temp_a_sample = get_tts(sentence,voices,tts_dir)
34
  f0_tts(sentence, voices, tts_dir, 'TODO path to reaper')
 
 
35
 
36
  return temp_a_sample
37
 
@@ -83,7 +85,7 @@ def align_human(meta,align_dir,speech_dir,model_path):
83
  if no_align:
84
  print(f'Need to run alignment for {len(no_align)} files')
85
  if not os.path.exists(align_dir):
86
- os.mkdir(align_dir)
87
 
88
  caligner = aligner(model_path,model_word_sep,model_blank_tk)
89
  for rec in no_align:
@@ -111,7 +113,7 @@ def f0_human(meta, f0_dir, speech_dir, reaper_path):
111
  if no_f0:
112
  print(f'Need to estimate pitch for {len(no_f0)} recordings')
113
  if not os.path.exists(f0_dir):
114
- os.mkdir(f0_dir)
115
  #TODO
116
 
117
  else:
@@ -152,7 +154,7 @@ def get_tts(sentence,voices,ttsdir):
152
  if no_voice:
153
  print(f'Need to generate TTS for {len(no_voice)} voices')
154
  if not os.path.exists(f'{ttsdir}{dpath}'):
155
- os.mkdir(f'{ttsdir}{dpath}')
156
  for v in voices:
157
  wf, af = tiro(sentence,v,save=f'{ttsdir}{dpath}/')
158
 
 
32
  if voices:
33
  temp_a_sample = get_tts(sentence,voices,tts_dir)
34
  f0_tts(sentence, voices, tts_dir, 'TODO path to reaper')
35
+
36
+ # by now, all the data to cluster and eval exists in the right place.
37
 
38
  return temp_a_sample
39
 
 
85
  if no_align:
86
  print(f'Need to run alignment for {len(no_align)} files')
87
  if not os.path.exists(align_dir):
88
+ os.makedirs(align_dir)
89
 
90
  caligner = aligner(model_path,model_word_sep,model_blank_tk)
91
  for rec in no_align:
 
113
  if no_f0:
114
  print(f'Need to estimate pitch for {len(no_f0)} recordings')
115
  if not os.path.exists(f0_dir):
116
+ os.makedirs(f0_dir)
117
  #TODO
118
 
119
  else:
 
154
  if no_voice:
155
  print(f'Need to generate TTS for {len(no_voice)} voices')
156
  if not os.path.exists(f'{ttsdir}{dpath}'):
157
+ os.makedirs(f'{ttsdir}{dpath}')
158
  for v in voices:
159
  wf, af = tiro(sentence,v,save=f'{ttsdir}{dpath}/')
160