Please try this:
Open Device Manager, and make sure you've audio drivers installed and properly working.
If no audio driver is listed, you can visit your device manufacturer's website to download and install audio drivers for your system model.
If audio driver is present, you can try updating audio drivers to latest version.
Or if you've already updated them, try to roll back previous version to see if that works.
Also, run Playing Audio troubleshooter from Settings app > System > Troubleshoot > Other troubleshooters. Let us know what it reports back.
Also, refer other suggestions here:
https://www.kapilarya.com/fix-no-audio-output-device-is-installed-in-windows-11
Let us know if this helps!
Note: Included link(s) in this reply refers to a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.