diff --git a/server/voice_changer/VoiceChanger.py b/server/voice_changer/VoiceChanger.py index f36d9052..1d32ca73 100755 --- a/server/voice_changer/VoiceChanger.py +++ b/server/voice_changer/VoiceChanger.py @@ -119,6 +119,8 @@ class VoiceChanger(): if "CUDAExecutionProvider" in providers: provider_options=[{'device_id': self.settings.gpu}] self.onnx_session.set_providers(providers=["CUDAExecutionProvider"], provider_options=provider_options) + if key == "crossFadeOffsetRate" or key == "crossFadeEndRate": + self.unpackedData_length = 0 return self.get_info() elif key in self.settings.floatData: setattr(self.settings, key, float(val))