From 3c034a7a8fab5eb1c9f027790a2da55a4a03b006 Mon Sep 17 00:00:00 2001 From: lizhongxiang Date: Wed, 26 Feb 2025 17:09:32 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E9=83=A8=E7=BD=B2=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/utils/tts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/utils/tts.py b/core/utils/tts.py index 35d01dd82..41cab4827 100644 --- a/core/utils/tts.py +++ b/core/utils/tts.py @@ -267,6 +267,8 @@ class FishSpeech_TTS(TTS): byte_audios = [audio_to_bytes(ref_audio) for ref_audio in ref_audios] if ref_texts is None: ref_texts = [] + else: + ref_texts = [ref_text for ref_text in ref_texts] else: byte_audios = [] ref_texts = []