improved audio-output script