voice-changer/server/voice_changer/RVC/pitchExtractor/PitchExtractor.py

13 lines
269 B
Python
Raw Normal View History

2023-05-02 16:29:28 +03:00
from typing import Protocol
class PitchExtractor(Protocol):
def extract(self, audio, f0_up_key, sr, window, silence_front=0):
...
2023-05-31 08:30:35 +03:00
def getPitchExtractorInfo(self):
return {
"pitchExtractorType": self.pitchExtractorType,
2023-05-31 08:30:35 +03:00
}