Audacity can record sound that comes out the speakers before it comes out.
It records it as a WAV file so one needs space.. (of course one converts it to e.g. mp3 , afterwards)
That is of course much better than putting a mic near the speakers, as some did about a year ago, when chaim was on a radio program on paltalk. (it would also record a wav, though not such good quality)