audiomentionsis a very convenient library for my bird sound classification. As the code below:from audiomentations import Compose, AddGaussianNoise, AddGaussianSNR, TimeStretch, PitchShift
self.augment = Compose([
AddGaussianNoise(min_amplitude=0.005, max_amplitude=0.015, p=poss),
AddGaussianSNR(min_snr_in_db=5.0, max_snr_in_db=40.0, p=poss),
TimeStretch(min_rate=0.8, max_rate=1.2, p=poss),
PitchShift(min_semitones=-2, max_semitones=2, p=poss)
])These four augmentation methods are enough for current training. But thePitchShiftmet
...
继续阅读
(99)