Same with Windows 7, I'm presuming.
https://superuser.com/questions/1120781/get-windows-xp-sound-recorder-on-windows-10
To run a program in compatibility mode, you right-click on the program in Windows Explorer, or on the icon if you put it on your desktop, for instance.
Select Properties from the resulting context menu.
There will be several tabs [General, Compatibility, Security, Details]. Select the Compatibility tab.
There will be options that you should be able to figure out. I did this with the 32-bit Spider card game program from XP.
I do have the sndrec32.exe file, which is pretty easy to get online. For some reason, the quality sucks when running on Windows 7.
I recall in the mid-’90s that I made my own short audio clips from CDs to use for PC “events”, like new email alert, shut-down, etc. The sound recorder made editing easy, and the sound was clear. Now it’s just fuzzy. I’m not a pro AV person, so maybe I need to tweak something.
It’s no big deal, and nobody will die because of it, but it did a good job.
Also, thanks for the tip about compatibility mode. I’ll try that.