SU_PYROW

How to record any thing you hear through your speakers

The way I have this setup, you will need to be using alsa as your sound system, arecord and ffmpeg installed and working.

Make a file named .asoundrc in your home directory

## ~/.asoundrc

pcm.copy
{
type plug
slave {
pcm hw
}
route_policy copy
}

chmod 644 .asoundrc

Go into alsamixer from the shell and select the input device. Depending on your sound device, your basically looking for "Capture" and a input device which will most of the time be "Input Device 1 or 2" select "Capture" and the "Input Device". Kmix is also an option to change capture devices. You might have to go into "Settings" "Configure Channels" and add the "Capture" and "Input 1" you need.

now, time to try it out.

arecord -d 14400 -c 1 -f S16_LE -r 32000 -t wav -D copy | ffmpeg -ac 1 -ar 22050 -i - ~/recording-soundtest.mp3

Replay the recording-soundtest.mp3 file, you should have heard what ever was playing at the time.

This script is designed to add the name and date of the recording.

#/bin/sh
## ~/c2c

TODAY=$(date +"%b-%d-%y")

arecord -d 14400 -c 1 -f S16_LE -r 32000 -t wav -D copy | ffmpeg -ac 1 -ar 22050 -i - /storage1/audio/myfavradioshow/$1-$TODAY.mp3

Now when I type

c2c part1

I will have a file named "c2c-part1-Aug-08-08.mp3"

This document was last modified on: 190624 19:52:54 UTC