This commit is contained in:
w-okada 2023-08-03 01:19:21 +09:00
parent fee9354ea6
commit 4abbe0839e
3 changed files with 2 additions and 3 deletions

View File

@ -141,7 +141,6 @@ class DiffusionSVC(VoiceChangerModel):
if self.pipeline is None:
logger.info("[Voice Changer] Pipeline is not initialized.")
raise PipelineNotInitializedException()
data = self.generate_input(receivedData, crossfade_frame, sola_search_frame)
audio: AudioInOut = data[0]
pitchf: PitchfInOut = data[1]

View File

@ -46,7 +46,7 @@ class EmbedderManager:
file = cls.params.content_vec_500_onnx
return OnnxContentvec().loadModel(file, dev)
except Exception as e: # noqa
print("[Voice Changer] use torch contentvec")
print("[Voice Changer] use torch contentvec", e)
file = cls.params.hubert_base
return FairseqHubert().loadModel(file, dev, isHalf)
elif embederType == "hubert-base-japanese":

View File

@ -208,7 +208,7 @@ class VoiceChangerV2(VoiceChangerIF):
block_frame = receivedData.shape[0]
crossfade_frame = min(self.settings.crossFadeOverlapSize, block_frame)
self._generate_strength(crossfade_frame)
audio = self.voiceChanger.inference(
receivedData,
crossfade_frame=crossfade_frame,