Implemented AudioRecord for recording, but need to check that it works.