voice-changer/server/voice_changer/RVC/pitchExtractor/PitchExtractor.py
2023-05-02 22:29:28 +09:00

10 lines
269 B
Python

from typing import Protocol
from const import EnumPitchExtractorTypes
class PitchExtractor(Protocol):
pitchExtractorType: EnumPitchExtractorTypes = EnumPitchExtractorTypes.harvest
def extract(self, audio, f0_up_key, sr, window, silence_front=0):
...