mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-01-24 05:55:01 +03:00
371e1b8cac
pitch extractor sr is changed from fixed(16k) to audio sampl rate
15 lines
379 B
Python
15 lines
379 B
Python
from typing import Protocol
|
|
|
|
from voice_changer.utils.VoiceChangerModel import AudioInOut
|
|
|
|
|
|
class PitchExtractor(Protocol):
|
|
|
|
def extract(self, audio: AudioInOut, sr: int, block_size: int, model_sr: int, pitch, f0_up_key, silence_front=0):
|
|
...
|
|
|
|
def getPitchExtractorInfo(self):
|
|
return {
|
|
"pitchExtractorType": self.pitchExtractorType,
|
|
}
|