The code in this screenshot will record from the microphone and play it back.