Dump sound device output

Record the current output from your sound card

The easiest way is to install sox:
sudo apt install sox

Then use 'rec':
rec -c 2 output.mp3

where -c is the number of channels to record