mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-02-02 16:23:58 +03:00
update
This commit is contained in:
parent
fee9354ea6
commit
4abbe0839e
@ -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]
|
||||
|
@ -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":
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user