Hi Ibrahim Mohammad,
Thanks for reaching out to Microsoft Q&A Forum. I understand that you’re facing issue with a Realtek-related where the headphone mic isn’t detected, even though audio output works fine. Please go to Settings > System > Sound and check if any input device other than the built-in mic appears. If only “Microphone (Realtek Audio)” or “Stereo Mix” shows, the headset mic isn’t being recognized. If installed, open Realtek Audio Console and look for Connector Retasking. Switch the analog input from Headphone to Headset. If the app won’t open or errors out, reinstall it via Microsoft Store after installing the correct Realtek driver package (DCH drivers) from your PC manufacturer.
Also, considering reinstall or roll back drivers. In Device Manager, under Sound, video and game controllers, uninstall the Realtek driver and restart. Download the latest driver from your motherboard or laptop vendor (not just Windows Update). If the latest driver fails, try an older OEM version.
Realtek usually prompts you to choose “Headphones” vs. “Headset” when plugging in. If this stopped appearing, reinstalling the driver and Audio Console often restores it.
The initial response might not address the problem. So, if your problem persists or you need any assistance, feel free to ask me by clicking "Add Comment" or "Post Answer" if you cannot add comment. This helps me can read your follow up. Thanks for your effort.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards.