Record WAV format file.