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