mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-08-23 12:39:52 +08:00
Update TTS.py (#2450)
This commit is contained in:
parent
0d2f273402
commit
dd2b9253aa
@ -1073,7 +1073,7 @@ class TTS:
|
||||
|
||||
###### setting reference audio and prompt text preprocessing ########
|
||||
t0 = time.perf_counter()
|
||||
if (ref_audio_path is not None) and (ref_audio_path != self.prompt_cache["ref_audio_path"]):
|
||||
if (ref_audio_path is not None) and (ref_audio_path != self.prompt_cache["ref_audio_path"] or (self.is_v2pro and self.prompt_cache["refer_spec"][0][1] is None)):
|
||||
if not os.path.exists(ref_audio_path):
|
||||
raise ValueError(f"{ref_audio_path} not exists")
|
||||
self.set_ref_audio(ref_audio_path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user