line-in recorder

Paul Hamilton paul at
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:


Add to kernel:		“device	pcm”
cd /dev
./MAKEDEV snd0
cat /dev/sndstat	;to see if it’s 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

You can use the ‘at’ command to automate a future recording:
	at 12:05 Apr 27th
		/root/bin/ 3600 sat_science_show
		^d	; to terminate the at job.

See ‘Pluto’ @ /root/bin/ for script to automate the recording of
the ‘line in’
	/root/bin/ <length of time to record> <output_file_name>		; no
	/root/bin/ 1800 sun_1600_news
# cat /root/bin/

#! /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: <no of sec to record> <filename>
export TERM


# Test to see if there are two cmd line arguments

# First set the mixer to the correct values
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

#list the contents of the output dir.
echo "++++++++++++++++++++++++++++++++++++"
echo "++++++++++++++++++++++++++++++++++++"


To Play:-

	The nmixer can be autoset via:	nmixer –q vol=100 pcm=100 rec=50
	Run:	mpg123 –b 1024 <filename.mp3>

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!



Paul Hamilton

-----Original Message-----
From: owner-freebsd-questions at
[mailto:owner-freebsd-questions at]On Behalf Of Brian H
Sent: Friday, 30 January 2004 2:35 AM
To: freebsd-questions at
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.

freebsd-questions at mailing list
To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"

More information about the freebsd-questions mailing list