Tutorial :Extract AAC audio properties using Python?



Question:

What's the easiest Python library to use to extract properties from an AAC audio file (.m4a)?

Specifically, I'd like to extract the following properties:

  • Sample rate
  • Channel count (mono or stereo)
  • Length (in seconds)


Solution:1

Try the AudioFile class in Audio Tools.


Solution:2

Try using the command exiftool. Of course, if you're using linux. This command shows all the properties of audio files, video and pictures. Exiftool installed, simply use the command:

exiftoll your_file_name.extension

eg exiftoll music.mp3


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »