title: Analyse frequency of mp3 files with python
body: <p>I am trying to write a Python script to read an MP3 file and perform some analysis on the frequencies in it. In particular, I want a spectrogram (frequency vs time) as output.</p>
  
  <p>However, when I read the file using open() and piped the contents to a file, I got something like this:</p>
  
  <pre><code>3763 1e65 0311 1814 b094 d3e3 25b3 641b
  15a1 f146 62d6 ade6 7708 c5ec 1a0d 7395
  201c 46e6 65a9 5276 688a 47eb 80e8 617e
  4d66 2d82 2677 f74e e664 6220 69fa 1b46
  </code></pre>
  
  <p>On further research, I figured that these were somehow related to the MP3 headers and data discussed in this wiki: <a href="http://en.wikipedia.org/wiki/MP3#File_structure" rel="noreferrer">http://en.wikipedia.org/wiki/MP3#File_structure</a></p>
  
  <p>How can I use this information to extract frequency data of the file?</p>
  
  <p>PS: I specifically want to analyse MP3 files, NOT WAV files. A workaround would be to convert the MP3 to WAV format and then work on that, as there is a Python module to handle WAV files. But is there a solution to this problem without this conversion?</p>
  
  <p>Thanks in advance.</p>