Added ability to specify a file format for the audio output