Recording analog audio using Tinycore Linux-- I also use this to record/digitize records).

Some of us have probably already done this , but it works great with my Rapsberry PI 2 running Tinycore (it is a PiCore player)

Assumes line signal coming from the Receiver/source into the DAC, connected with USB to Raspberry PI.

1. Mount the remote network folder. The server Address is the Vortexbox on the LAN at 10.209.162.144 ...or mount the local device (32 GB SD Card) if mount.cifs does not work ..

sudo mkdir /mnt/vorty (empty directory)sudo mount /dev/mcblk0p2 /mnt/vorty** This is the 32GB card which was resized to capture all of the extra space

2. at the command prompt, Use the arecord command to capture the signal from the FM tuner or your turntable, or any device sending out the line signal .. (use arecord -L to see the capture devices .. I use a Behringer UCA222 DAC which gets listed as sysdefault:CARD=CODEC

Here is the code:

sudo arecord -D sysdefault:CARD=CODEC -f cd /mnt/vorty/ KOOL-FM.wav

I use winscp to transfer the WAV file to my music collection (I use Media Monkey).. I am thinking this can become a cron job to capture radio shows .. as long as the equipment is setup beforehand ..

** call the WAV file whatever you like -- I use this to digitize my LP's .. a fun project and very easy. I see occasional buffer overrun errors, which are maybe 0.014 seconds, so I do not worry..now I can play my records in the car !

#!/bin/sh## Script to use arecord to capture FM signal## Signal gets saved to SD Card - use WinSCP to move to windows machine## Look to some way to get cron to create several files at different times .#NOW=$(date +"%b-%d-%H:%M")# Use date to index the file#arecord -D sysdefault:CARD=CODEC -f cd | lame -b 320 - /mnt/mmcblk0p2/fm/wjjr-$NOW.mp3## Not sure how to end the recording (timer function) [EDIT] Added code tags. Rich