LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 06-19-2010, 02:00 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,125

Rep: Reputation: 46
Recording music in linux.


GNU/Linux 2.6, Slackware 12.0

Hi:
Is there any application common to all linux distros (or at least to Slackware), which I could use to record music coming from the line input connector in my sound card into a file (.wav, .mp3, whatever) and which can be run from the cli? Thanks in advance.
 
Old 06-19-2010, 04:24 PM   #2
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,848

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
I have used Audacity to record records to .wav files. You can then encode them to any format you like. I have done lots of .mp3's and now .ogg files. Audacity can also be used to edit a .wav file. You can edit pops and clicks that are common from records. Audacity needs exclusive access to the sound card, so turn off any other sound applications before you start Audacity.
 
Old 06-19-2010, 04:35 PM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,125

Original Poster
Rep: Reputation: 46
Quote:
Originally Posted by camorri View Post
I have used Audacity to record records to .wav files. You can then encode them to any format you like. I have done lots of .mp3's and now .ogg files. Audacity can also be used to edit a .wav file. You can edit pops and clicks that are common from records. Audacity needs exclusive access to the sound card, so turn off any other sound applications before you start Audacity.
Thanks for your reply, camorri. I have audacious in kde. I don't know if it's the same (I did 'locate -i audacity and it output
/usr/share/apps/kappfinder/apps/Multimedia/audacity.desktop
)
In any case where can I get Audacity for free? Thanks againg.
 
Old 06-19-2010, 04:51 PM   #4
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,848

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
Audacious is a player, not a recording app. Here is a link, its on Sourceforge.

http://audacity.sourceforge.net/

Yes its free.
 
1 members found this post helpful.
Old 06-19-2010, 04:54 PM   #5
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,125

Original Poster
Rep: Reputation: 46
Quote:
Originally Posted by camorri View Post
Audacious is a player, not a recording app. Here is a link, its on Sourceforge.

http://audacity.sourceforge.net/

Yes its free.
Thanks. I'll give it a try.

Last edited by stf92; 06-19-2010 at 07:20 PM.
 
Old 06-19-2010, 07:14 PM   #6
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,564
Blog Entries: 1

Rep: Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026
Yeah, Audacity is very good when you want to record sound.
 
Old 06-19-2010, 07:22 PM   #7
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,125

Original Poster
Rep: Reputation: 46
Quote:
Originally Posted by sycamorex View Post
Yeah, Audacity is very good when you want to record sound.
Alright. But I'd prefer a tool which can be run in text mode (in the linux console).
 
Old 06-19-2010, 08:08 PM   #8
maruchan
LQ Newbie
 
Registered: Jul 2005
Posts: 11

Rep: Reputation: 2
Have you tried Ecasound?

Quote:
Ecasound is a software package designed for multitrack audio
processing. It can be used for simple tasks like audio playback,
recording and format conversions, as well as for multitrack effect
processing, mixing, recording and signal recycling. Ecasound supports a
wide range of audio inputs, outputs and effect algorithms. Effects and
audio objects can be combined in various ways, and their parameters can
be controlled by operator objects like oscillators and MIDI-CCs. A
versatile console mode user-interface is included in the package.
 
Old 06-19-2010, 08:16 PM   #9
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Rep: Reputation: 51
TRY this script:

Code:
#!/bin/sh
# script that shall be updated to pipe wav to mp3
seq 0 1 5 | while read i ; 
echo "Card number: $i"
printf "Aux,line,number... 0 for default, try higher:>"
read trymynumber
echo "Creating a wav file to Filewavtestcard.wav"
OUTPUT="Filewavtestcard.wav"
arecord -Dplughw:$i,$trymynumber -f cd -vv "$OUTPUT"
ls -ltra "$1"
echo "Testing ... "
mplayer "$OUTPUT"
echo "Removing temp $OUTPUT"
rm "$OUTPUT"
echo "Reloop "
done
echo "Coded by Frenchn00b for stf92. We need a database on Internet of Scripts for text_CLI linux, because everything is possible from CLI!!"

Last edited by frenchn00b; 06-19-2010 at 08:17 PM.
 
Old 06-19-2010, 08:30 PM   #10
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,125

Original Poster
Rep: Reputation: 46
Quote:
Originally Posted by maruchan View Post
Have you tried Ecasound?
Does it use the aRts daemon? Because I have a program with a console mode user interface named artsrec and when I run it, it displays the message 'Can't connect to sound server'. However, ps says artsd, obviously the daemon, is running. Starting KRec (a GUI app), the help says its a frontend for aRts. And it runs.

Well. I'd rather try ecasound and see what happens.
 
Old 06-19-2010, 08:53 PM   #11
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,125

Original Poster
Rep: Reputation: 46
Quote:
Originally Posted by frenchn00b View Post
TRY this script:

Code:
#!/bin/sh
# script that shall be updated to pipe wav to mp3
seq 0 1 5 | while read i ; 
echo "Card number: $i"
printf "Aux,line,number... 0 for default, try higher:>"
read trymynumber
echo "Creating a wav file to Filewavtestcard.wav"
OUTPUT="Filewavtestcard.wav"
arecord -Dplughw:$i,$trymynumber -f cd -vv "$OUTPUT"
ls -ltra "$1"
echo "Testing ... "
mplayer "$OUTPUT"
echo "Removing temp $OUTPUT"
rm "$OUTPUT"
echo "Reloop "
done
echo "Coded by Frenchn00b for stf92. We need a database on Internet of Scripts for text_CLI linux, because everything is possible from CLI!!"
I thank you from my heart. Unfortunately the script gets this error:
line 16: syntax error near unexpected token 'done'

Line 16 is the line containing 'done'. I'll see what can be done.
 
Old 06-19-2010, 09:44 PM   #12
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,125

Original Poster
Rep: Reputation: 46
I think the error is in the 3th statement. If I substitute

seq 0 1 5 | while read i ; do

for

seq 0 1 5 | while read i ;

then bash outputs no errors but arecord does. I'll go on trying to make it work.
 
  


Reply

Tags
audio, record


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Recording Music with Linuc sjoerd222 Linux - Software 3 10-29-2007 10:41 AM
Does SUSE linux have a bundled package of music/recording apps? bgryderclock Suse/Novell 2 06-17-2006 01:50 PM
a good music recording tool lasttriptotulsa Linux - Newbie 5 09-22-2003 04:38 AM
music recording software? Goatdemon Linux - Software 16 02-28-2003 05:06 PM
Recording Music chamkila Linux - General 5 09-02-2002 11:29 AM


All times are GMT -5. The time now is 08:06 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration