allow different output formats: .wav, .mp3, or .js