Skip to content

Instantly share code, notes, and snippets.

View DistributedDoge's full-sized avatar
🦁
The lion does not concern itself with status messages

DistributedDoge

🦁
The lion does not concern itself with status messages
View GitHub Profile
@tcg
tcg / eyed3.py
Created May 17, 2013 15:51
Use eyed3 in python to get audio encoding information (bitrate, sample rate, channel mode)
# pip install eyeD3
import eyed3
from eyed3 import mp3
f = mp3.Mp3AudioFile('2-297a587f40fdc0064c44f2e5247d7bf7.mp3')
# Now:
# >>> f.info.sample_freq
# 24000
# >>> f.info.bit_rate