bugfix: f0detector

This commit is contained in:
wataru 2023-05-04 12:21:34 +09:00
parent 50ff96b3c5
commit 3726a926b7
2 changed files with 5 additions and 1 deletions

View File

@ -256,6 +256,10 @@ class RVC:
setattr(self.settings, key, float(val))
elif key in self.settings.strData:
setattr(self.settings, key, str(val))
if key == "f0Detector":
self.pitchExtractor = PitchExtractorManager.getPitchExtractor(
self.settings.f0Detector
)
else:
return False
return True

View File

@ -8,7 +8,7 @@ class RVCSettings:
gpu: int = 0
dstId: int = 0
f0Detector: str = "harvest" # pm or harvest
f0Detector: str = "harvest" # dio or harvest
tran: int = 20
silentThreshold: float = 0.00001
extraConvertSize: int = 1024 * 32