I was able to get the length simply by creating a function that plays the mp3, gets the length and stops playing it. That way, the info is extracted without the sound actually coming through the speakers. Thanks guys.