Added config option for wirte wave files