record and play audio file