We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4b17c4 commit afbcf40Copy full SHA for afbcf40
GPT_SoVITS/TTS_infer_pack/TTS.py
@@ -360,7 +360,11 @@ def set_ref_audio(self, ref_audio_path:str):
360
'''
361
self._set_prompt_semantic(ref_audio_path)
362
self._set_ref_spec(ref_audio_path)
363
+ self._set_ref_audio_path(ref_audio_path)
364
365
+ def _set_ref_audio_path(self, ref_audio_path):
366
+ self.prompt_cache["ref_audio_path"] = ref_audio_path
367
+
368
def _set_ref_spec(self, ref_audio_path):
369
audio = load_audio(ref_audio_path, int(self.configs.sampling_rate))
370
audio = torch.FloatTensor(audio)
0 commit comments