implement fcpe

This commit is contained in:
icecoins 2024-01-11 21:09:57 +08:00 committed by GitHub
parent fbf69cda19
commit 04f93b193f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,6 +43,9 @@ class PitchExtractorManager(Protocol):
return RMVPEPitchExtractor(cls.params.rmvpe, gpu) return RMVPEPitchExtractor(cls.params.rmvpe, gpu)
elif pitchExtractorType == "rmvpe_onnx": elif pitchExtractorType == "rmvpe_onnx":
return RMVPEOnnxPitchExtractor(cls.params.rmvpe_onnx, gpu) return RMVPEOnnxPitchExtractor(cls.params.rmvpe_onnx, gpu)
elif pitchExtractorType == "fcpe":
# add the FcpePitchExtractor
return FcpePitchExtractor(gpu)
else: else:
# return hubert as default # return hubert as default
print("[Voice Changer] PitchExctractor not found", pitchExtractorType) print("[Voice Changer] PitchExctractor not found", pitchExtractorType)