Consider the following web page, which is a simple demonstration of how to use record and playback features inside a browser: https://ai.github.io/audio-recorder-polyfill/