Open Device Manager, and make sure you've audio drivers installed and right click on it, select Enable device.
You can also visit your device manufacturer's website to download audio drivers for your system model, if they're missing.
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.
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 in this reply refers to blog by a trusted Microsoft MVP.