Created
November 19, 2017 23:42
-
-
Save fedden/445137b26930dd80da0d66451b303e61 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 librosa | |
| sample_rate = 44100 | |
| mfcc_size = 13 | |
| # Load the audio | |
| pcm_data, _ = librosa.load(file_path) | |
| # Compute a vector of n * 13 mfccs | |
| mfccs = librosa.feature.mfcc(pcm_data, | |
| sample_rate, | |
| n_mfcc=mfcc_size) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe you should take the
_var for sample_rate instead of manually setting it.