Windows 11 and Windows 10 are known to have issues with the Realtek Audio chipsets such as disabling or removing the drivers. Re-installing the drivers or updating the drivers is one remedy. If you are getting a code 10 error follow this guide: Fix: this device cannot start (code 10) - Windows 10 because you don't always have to install new drivers.
The Realtek Audio codec is currently at version: R2.83
this is still the current driver for September 2024
Here we have more Windows 11 Realtek Audio Driver resources. If you want to test the functionality of your Microphone or Speakers you can do that here: Test Microphone - Sound Test