voice-changer/server/voice_changer/DiffusionSVC/pitchExtractor/PitchExtractor.py
2023-07-14 13:54:08 +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,
}