Try using the microphone in safe mode. If there is no problem in Safe Mode, it may be a problem caused by an installed third-party app on your phone. To find which app is causing the issue, you can try uninstalling the apps in the order of the last installation.
Step 1. Open Quick settings. Tap the Power icon at the top of the screen.
Step 2. Touch and hold Power off until the Safe mode icon is displayed.
Step 3. Tap Safe mode. If you've entered Safe mode successfully, you will see Safe mode displayed at the bottom of the screen.