View Single Post
Posts: 45 | Thanked: 45 times | Joined on Jul 2010 @ Berlin
#1
This is a little how to record music from the FM Radio Player from Martin Grimme.

Edit: Changed to Recaller 2010-08-22

Thanks to Tom Wälti there is the program Recaller to record from FM Radio.

Recaller can encode the recorded sound on the fly to the AAC audio format with 128 kbit/s.

Install Recaller and FM Radio:
Name:  fmradio1.jpg
Views: 841
Size:  24.4 KB

Configure Recaller by tapping on the desktop.
Name:  fmradio2.jpg
Views: 694
Size:  16.6 KB
Tap on the lower left symbol on the red Recaller icon.

Set the Audio Source to System:
Name:  fmradio3.jpg
Views: 706
Size:  27.5 KB

Tap the red button to start recording. It changes to green.
Name:  fmradio4.jpg
Views: 667
Size:  24.5 KB

Start the FM Radio.
Name:  fmradio5.jpg
Views: 682
Size:  28.3 KB

The recorded sound is in:
Code:
/home/user/MyDocs/Rec_<date>.aac

This was my first suggestion. A command line way but it is not recommended. I leave it here for historical reasons.

First you need to configure a virtual pulse sound device to record from.

Code:
echo "pcm.pulse { type pulse }" > ~/.asoundrc
Set the recording volume with the alsa utilities:
Code:
amixer
# or
alsamixer
Start FM Radio Player and record with alsa record (arecord):

Code:
filename=/home/user/MyDocs/`date +"%F_%H-%M-%S_radio"`.wav
arecord -f cd -t wav -D pulse "$filename"
Press Ctrl + C to stop recording.

The wav-format has a limit of the file size ! (2 GB)

Install an MP3 encoder to shrink the recorded file.

Code:
sudo gainroot
apt-get install lame
exit
Convert the wav file to mp3 and delete the wav file:

Code:
lame -h --cbr -b 192 -m j "$filename" "$filename".mp3
rm -f "$filename"
lame seems to be compiled without optimisation - it seems to be slow.

Last edited by TorstenT; 2010-08-22 at 17:37.
 

The Following 12 Users Say Thank You to TorstenT For This Useful Post: