As your first step, check if your browser has the permission to access mic. For Mac, In System preferences > Under Security & Privacy > Microphone, you will have to check if you’ve granted permission for your browser(Chrome/ Firefox) to access the microphone. If the permission checkbox is granted and the issue still prevalant, try restarting your system or your browser.