Replace check_wav_task by write_task.