This should be done when the user clicks the save button. Data should sent to the API for storing recordings.
The audio data is stored in an audio element until this is done (or the page is closed/refreshed). Prompt identifier will also be included.