Skip to content

Instantly share code, notes, and snippets.

@fedden
Created November 19, 2017 21:38
Show Gist options
  • Select an option

  • Save fedden/213201d5d64dc8b6cff38c5aba5611bc to your computer and use it in GitHub Desktop.

Select an option

Save fedden/213201d5d64dc8b6cff38c5aba5611bc to your computer and use it in GitHub Desktop.
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment