If you're a Mac owner, there's a free utility called Audio Hijack. You select the sound source - Firefox, Spotify, etc. - and record as it plays. You can then split, top and tail if necessary with Audacity, Garageband or any other editor. The recording level is set automatically.