replace tiro tts service with grammatek
Browse files- scripts/runSQ.py +3 -2
scripts/runSQ.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import os, unicodedata, string, random
|
2 |
from scripts.ctcalign import aligner, wav16m
|
3 |
-
from scripts.tapi import tiro
|
4 |
from scripts.reaper2pass import estimate_pitch, save_pitch
|
5 |
import scripts.clusterprosody as cl
|
6 |
|
@@ -159,7 +159,8 @@ def get_tts(sentence,voices,ttsdir,align_model_path,reaper_path = "REAPER/build/
|
|
159 |
fpath = f'{dpath}/{v}.f0'
|
160 |
|
161 |
if not os.path.exists(wpath):
|
162 |
-
wf = tiro(sentence,v,save=f'{dpath}/')
|
|
|
163 |
|
164 |
if not os.path.exists(apath):
|
165 |
word_aligner = align_file(wpath, apath, snorm(sentence), word_aligner = word_aligner, model_path = align_model_path)
|
|
|
1 |
import os, unicodedata, string, random
|
2 |
from scripts.ctcalign import aligner, wav16m
|
3 |
+
from scripts.tapi import tiro, grammatek
|
4 |
from scripts.reaper2pass import estimate_pitch, save_pitch
|
5 |
import scripts.clusterprosody as cl
|
6 |
|
|
|
159 |
fpath = f'{dpath}/{v}.f0'
|
160 |
|
161 |
if not os.path.exists(wpath):
|
162 |
+
#wf = tiro(sentence,v,save=f'{dpath}/')
|
163 |
+
wf = grammatek(sentence,v,save=f'{dpath}/')
|
164 |
|
165 |
if not os.path.exists(apath):
|
166 |
word_aligner = align_file(wpath, apath, snorm(sentence), word_aligner = word_aligner, model_path = align_model_path)
|