Michael Bevilacqua on 24 Sep 2006 14:33:39 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Casette recording to mp3


On 9/23/06, Lee Marzke <lee@marzke.net> wrote:
However ALL of the audio application, including Audacity that I just
installed just record a flat line of silence.

Hey Lee,

If you are using ALSA and alsamixer (preferred) you must set the audio
capture for the source you are trying to record.

In my experiences, Audacity can sometimes get confused about this
action depending on the card. Alternatively you can try using ecasound
with this little script:

#!/bin/bash
# Record StarsEnd weekly from 1 until 6 am from an external radio on
line level input
# Michael D. Bevilacqua
#
# Cron:
# 00 1 * * 7 root /root/recordradio/record
# 00 6 * * 7 root /root/recordradio/cleanup


DATE=`/usr/bin/date +%Y%m%d`

amixer -q -c 0 cset numid=43,iface=MIXER,name='Master Playback Switch' 1
amixer -q -c 0 cset numid=44,iface=MIXER,name='Master Playback Volume' 25
amixer -q -c 0 cset numid=66,iface=MIXER,name='PCM Playback Switch' 1
amixer -q -c 0 cset numid=67,iface=MIXER,name='PCM Playback Volume' 0
amixer -q -c 0 cset numid=1,iface=MIXER,name='Wave Playback Volume' 0
# turn to zero when complete capture
amixer -q -c 0 cset numid=58,iface=MIXER,name='Line Playback Switch' 1
amixer -q -c 0 cset numid=59,iface=MIXER,name='Line Playback Volume' 25
amixer -q -c 0 cset numid=68,iface=MIXER,name='Capture Source' 4
amixer -q -c 0 cset numid=69,iface=MIXER,name='Capture Switch' 1
amixer -q -c 0 cset numid=70,iface=MIXER,name='Capture Volume' 11
amixer -q -c 0 cset numid=19,iface=MIXER,name='AC97 Capture Volume' 70
# this is the audio capture monitor - should be turned down
amixer -q -c 0 cset numid=18,iface=MIXER,name='AC97 Playback Volume' 0


/usr/bin/ecasound -q -C -i alsahw,0,0 -o /root/recordradio/$DATE.mp3 &


Your sound card's capabilities may vary. If you want, you can do 'amixer >> amixer-out' to review what settings your card is capable of. Feel free to post this output to the list verbatim if you need clarification.

Thanks.

--
Michael D. Bevilacqua
michael@bevilacqua.us
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug