For Chrome:
Launch Chrome, click the three-dot menu in the upper-right corner, and choose Settings.
Click Privacy and security from the panel on the left.
Set your default microphone from the dropdown menu, and under the Default behavior section, ensure Sites can ask to use your microphone is selected
Else, you can reset Chrome or, update Chrome.
For Edge:
Go to edge://settings.
From the left pane menu, select Reset settings.
Click Restore settings to their default values > Reset.