In Sound settings, ensure your microphone is set as the default recording device:
Right-click the speaker icon > Sound settings
Under Input, check:
The right device is selected
Tap the mic – see if the volume bar moves
Click Device properties > Test mic
Update the audio driver from the support site of the manufacturer
Press Win+R, type "services.msc", find "Windows Audio" service and restart it
Can you check the issue with a different microphone (if possible)
Try a different USB port.
Try a different voice recorder app from Microsoft store.