Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import librosa
- directory = './path/to/my/audio/folder/'
- for file in os.listdir(directory):
- if file.endswith('.wav'):
- file_path = os.path.join(directory, file)
- audio_data, _ = librosa.load(file_path)
Add Comment
Please, Sign In to add comment