Update api.py

This commit is contained in:
XXXXRT666 2024-03-20 20:07:18 +00:00 committed by GitHub
parent e0082d7720
commit 24218b27b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

2
api.py
View File

@ -411,7 +411,7 @@ def get_tts_wav(ref_wav_path, prompt_text, prompt_language, text, text_language)
top_k=config['inference']['top_k'],
early_stop_num=hz * max_sec)
t3 = ttime()
# print(pred_semantic[:,])
# print(pred_semantic.shape,idx)
if isinstance(pred_semantic, list) and isinstance(pred_semantic, list):
pred_semantic = pred_semantic[0]
idx=idx[0]