Skip to content

Instantly share code, notes, and snippets.

@abevieiramota
Created May 22, 2014 04:06
Show Gist options
  • Save abevieiramota/fafa816908f442e45e78 to your computer and use it in GitHub Desktop.
Save abevieiramota/fafa816908f442e45e78 to your computer and use it in GitHub Desktop.
from scikits.audiolab import Sndfile
f = Sndfile('01-Ideologia.flac', 'r')
# num de channels
nc = f.channels
# lê 10k frames de 2 canais
# funciona como generator, vai avançando
data = f.read_frames(10000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment