voice-changer/server/voice_changer/RVC/pitchExtractor/PitchExtractor.py
w-okada d5561c2212 New Feature:
- Add Crepe Full/Tiny (onnx)
 - remove test connect for local
Refactor:
 - RVC: comment out module importer
2023-07-07 02:17:29 +09:00

13 lines
269 B
Python

from typing import Protocol
class PitchExtractor(Protocol):
def extract(self, audio, f0_up_key, sr, window, silence_front=0):
...
def getPitchExtractorInfo(self):
return {
"pitchExtractorType": self.pitchExtractorType,
}