getUserMedia API provided by the browser. This API allows you to request access to the user's microphone directly from the browser.getUserMedia API using feature detection. Once confirmed, you can then prompt the user to grant permission to access their microphone by calling navigator.mediaDevices.getUserMedia({ audio: true }).