Playing back recorded audio


I’ve created an online experiment with microphone recording, and I want to add a test at the beginning where the participant will record a few words and the recording will be played back to them so they can verify that their microphone is working well etc. (I want to avoid cases in which the participant does the entire experiment just for me to find out later that the sound wasn’t captures for some reason…).
Is there any way to do that? Can I play audio that was just captured?