예제 #1
0
    def __init__(self, sampling_rate, zone=(0.2, 0.8), coverage=1., duration=None, 
        factor=(-10, 10), name='Pitch_Aug', verbose=0, stateless=True):
        super().__init__(action=Action.SUBSTITUTE, zone=zone, coverage=coverage, factor=factor, 
            duration=duration, name=name, device='cpu', verbose=verbose, stateless=stateless)

        self.sampling_rate = sampling_rate
        self.model = nma.Pitch()
예제 #2
0
 def get_model(cls, sampling_rate, pitch_range):
     return nma.Pitch(sampling_rate, pitch_range)
예제 #3
0
파일: pitch.py 프로젝트: swa770/CDdetection
 def get_model(cls, sampling_rate, zone, coverage, duration, factor):
     return nma.Pitch(sampling_rate, zone, coverage, duration, factor)
예제 #4
0
파일: pitch.py 프로젝트: ye-man/nlpaug
 def get_model(self, sampling_rate, pitch_factor):
     return nma.Pitch(sampling_rate, pitch_factor)