Guest User

Untitled

a guest
Nov 21st, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. import os
  2. import librosa
  3.  
  4. directory = './path/to/my/audio/folder/'
  5.  
  6. for file in os.listdir(directory):
  7. if file.endswith('.wav'):
  8. file_path = os.path.join(directory, file)
  9. audio_data, _ = librosa.load(file_path)
Add Comment
Please, Sign In to add comment