I know there it is possible to record sound from the speaker of the computer using command such as:
ffmpeg -f avfoundation -i ":0" -t 10 audiocapture.aiff
But as the recorded sound is far from perfect (due to the imperfection of the microphone), is there a way to record the audio directly from the soundcard (e.g. using ffmpeg)?