Skip to content
Browse files
Final Commit
  • Loading branch information
shyamalans committed Apr 18, 2023
0 parents commit a1d67b58f952565e62a9d18f4d6ad7829dc19137
Showing 1 changed file with 14 additions and 0 deletions.
@@ -0,0 +1,14 @@
from audiomentations import Compose, AddGaussianNoise, PitchShift, HighPassFilter
import librosa
import soundfile as sf

aug = Compose([
AddGaussianNoise(min_amplitude=0.001, max_amplitude=0.01, p=1.0),
PitchShift(min_semitones=0, max_semitones=0, p=1),
HighPassFilter(min_cutoff_freq=20, max_cutoff_freq=170, p=1)

def augmentSignal(signal, sr):
aug_sig = aug(signal, sr)
return aug_sig

0 comments on commit a1d67b5

Please sign in to comment.