Make script independent of audio file format.