Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -167,7 +167,6 @@ def create_tts_fn(vq_model, ssl_model, t2s_model, hps, config, hz, max_sec):
|
|
167 |
def tts_fn(ref_wav_path, prompt_text, prompt_language, target_phone, text_language, target_text = None):
|
168 |
t0 = ttime()
|
169 |
prompt_text=prompt_text.strip()
|
170 |
-
print(prompt_text)
|
171 |
prompt_language=prompt_language
|
172 |
with torch.no_grad():
|
173 |
wav16k, sr = librosa.load(ref_wav_path, sr=16000) # 派蒙
|
@@ -257,6 +256,7 @@ def get_str_list_from_phone(text, text_language):
|
|
257 |
# raw文本过g2p得到音素列表,再转成字符串
|
258 |
# 注意,这里的text是一个段落,可能包含多个句子
|
259 |
# 段落间\n分割,音素间空格分割
|
|
|
260 |
texts=text.split("\n")
|
261 |
phone_list = []
|
262 |
for text in texts:
|
|
|
167 |
def tts_fn(ref_wav_path, prompt_text, prompt_language, target_phone, text_language, target_text = None):
|
168 |
t0 = ttime()
|
169 |
prompt_text=prompt_text.strip()
|
|
|
170 |
prompt_language=prompt_language
|
171 |
with torch.no_grad():
|
172 |
wav16k, sr = librosa.load(ref_wav_path, sr=16000) # 派蒙
|
|
|
256 |
# raw文本过g2p得到音素列表,再转成字符串
|
257 |
# 注意,这里的text是一个段落,可能包含多个句子
|
258 |
# 段落间\n分割,音素间空格分割
|
259 |
+
print(text)
|
260 |
texts=text.split("\n")
|
261 |
phone_list = []
|
262 |
for text in texts:
|