line-in recorder
Paul Hamilton
paul at bdug.org.au
Sun Feb 1 15:40:08 PST 2004
Hi Brian,
You can use ecasound from ports. Here's a few notes I have made on using
and playing around with audio:
<NOTES>
http://eca.cx/ ; ECASOUND Web site
Add to kernel: device pcm
cd /dev
./MAKEDEV snd0
cat /dev/sndstat ;to see if its configured properly
pkg_add ecasound-1.8.5d15
pkg_add nmixer-2.0b17
pkg_add mpg123-x.x.x
pkg_add festival-x.x.x : text to voice sythasizer
Sound Recording:-
Set nmixer
Set Mic to 3
Set rec to 3
Run: ecasound I:/dev/dsp0 o test.wav
Or: ecasound t:<time> -f:s16_1e,1,11000,i I:/dev/dsp0 o
<filename.mp3
You can use the at command to automate a future recording:
at 12:05 Apr 27th
/root/bin/recsnd.sh 3600 sat_science_show
^d ; to terminate the at job.
See Pluto @ /root/bin/recsnd.sh for script to automate the recording of
the line in
/root/bin/recsnd.sh <length of time to record> <output_file_name> ; no
extension!
/root/bin/recsnd.sh 1800 sun_1600_news
----------------------------------------------------------------------------
----------------
# cat /root/bin/recsnd.sh
#! /bin/sh
# This will record audio input from the "Line Input" channel of the sound
card, and save it into
# a mp3 file in the /home/music/ dir.
#
# Usage: recsnd.sh <no of sec to record> <filename>
#
TERM=vt100
export TERM
CMDFILEPATH=/usr/local/bin
OUTFILEPATH=/home/music
# Test to see if there are two cmd line arguments
# First set the mixer to the correct values
echo "++++++++++++++++++++++++++++++++++++"
date
echo "++++++++++++++++++++++++++++++++++++"
echo
# echo "Setting nmixer settings"
# $CMDFILEPATH/nmixer -q vol=100 pcm=100 rec=50
# Now record the sound into a mp3 file
echo "Now recording the program"
$CMDFILEPATH/ecasound -t:$1 -f:"s16_le","1","11000","i" -i:/dev/dsp0 -o
$OUTFILEPATH/$2.mp3
#list the contents of the output dir.
ls -la $OUTFILEPATH
echo
echo "++++++++++++++++++++++++++++++++++++"
date
echo "++++++++++++++++++++++++++++++++++++"
----------------------------------------------------------------------------
-----------------------
To Play:-
The nmixer can be autoset via: nmixer q vol=100 pcm=100 rec=50
Run: mpg123 b 1024 <filename.mp3>
Festival
You can have festival read text files and convert them to spoken voice (male
or female):
festival tts /etc/rc.conf ; to output the contents of rc.conf!
</NOTES>
Cheers,
Paul Hamilton
-----Original Message-----
From: owner-freebsd-questions at freebsd.org
[mailto:owner-freebsd-questions at freebsd.org]On Behalf Of Brian H
Sent: Friday, 30 January 2004 2:35 AM
To: freebsd-questions at freebsd.org
Subject: line-in recorder
is there some software for freebsd that I could use to record what i have
coming in on the line-in on my sound card?
_________________________________________________________________
There are now three new levels of MSN Hotmail Extra Storage! Learn more.
http://join.msn.com/?pgmarket=en-us&page=hotmail/es2&ST=1
_______________________________________________
freebsd-questions at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions
mailing list