Last active
April 5, 2020 02:02
-
-
Save f-rumblefish/f726cbab2cca5ef55a8fb14294dde196 to your computer and use it in GitHub Desktop.
Audio Augmentation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# import library | |
import nlpaug | |
import nlpaug.augmenter.audio as naa | |
# loudness augmenter (where file_data is the output of librosa.load) | |
aug = naa.LoudnessAug(factor=(2, 5)) | |
augmented_data = aug.augment(file_data) | |
# MFCC feature extraction for the new data ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment