mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-03-11 09:58:49 +03:00
update
This commit is contained in:
parent
fee9354ea6
commit
4abbe0839e
@ -141,7 +141,6 @@ class DiffusionSVC(VoiceChangerModel):
|
|||||||
if self.pipeline is None:
|
if self.pipeline is None:
|
||||||
logger.info("[Voice Changer] Pipeline is not initialized.")
|
logger.info("[Voice Changer] Pipeline is not initialized.")
|
||||||
raise PipelineNotInitializedException()
|
raise PipelineNotInitializedException()
|
||||||
|
|
||||||
data = self.generate_input(receivedData, crossfade_frame, sola_search_frame)
|
data = self.generate_input(receivedData, crossfade_frame, sola_search_frame)
|
||||||
audio: AudioInOut = data[0]
|
audio: AudioInOut = data[0]
|
||||||
pitchf: PitchfInOut = data[1]
|
pitchf: PitchfInOut = data[1]
|
||||||
|
@ -46,7 +46,7 @@ class EmbedderManager:
|
|||||||
file = cls.params.content_vec_500_onnx
|
file = cls.params.content_vec_500_onnx
|
||||||
return OnnxContentvec().loadModel(file, dev)
|
return OnnxContentvec().loadModel(file, dev)
|
||||||
except Exception as e: # noqa
|
except Exception as e: # noqa
|
||||||
print("[Voice Changer] use torch contentvec")
|
print("[Voice Changer] use torch contentvec", e)
|
||||||
file = cls.params.hubert_base
|
file = cls.params.hubert_base
|
||||||
return FairseqHubert().loadModel(file, dev, isHalf)
|
return FairseqHubert().loadModel(file, dev, isHalf)
|
||||||
elif embederType == "hubert-base-japanese":
|
elif embederType == "hubert-base-japanese":
|
||||||
|
@ -208,7 +208,7 @@ class VoiceChangerV2(VoiceChangerIF):
|
|||||||
block_frame = receivedData.shape[0]
|
block_frame = receivedData.shape[0]
|
||||||
crossfade_frame = min(self.settings.crossFadeOverlapSize, block_frame)
|
crossfade_frame = min(self.settings.crossFadeOverlapSize, block_frame)
|
||||||
self._generate_strength(crossfade_frame)
|
self._generate_strength(crossfade_frame)
|
||||||
|
|
||||||
audio = self.voiceChanger.inference(
|
audio = self.voiceChanger.inference(
|
||||||
receivedData,
|
receivedData,
|
||||||
crossfade_frame=crossfade_frame,
|
crossfade_frame=crossfade_frame,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user