receive, decode, and save as wav file