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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
06-19-2010, 02:00 PM
|
#1
|
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 2,487
Rep:
|
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.
|
|
|
|
06-19-2010, 04:24 PM
|
#2
|
|
Senior Member
Registered: Nov 2002
Location: Toronto Canada
Distribution: Slackware 14.0
Posts: 4,616
|
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.
|
|
|
|
06-19-2010, 04:35 PM
|
#3
|
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 2,487
Original Poster
Rep:
|
Quote:
Originally Posted by camorri
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.
|
|
|
|
06-19-2010, 04:51 PM
|
#4
|
|
Senior Member
Registered: Nov 2002
Location: Toronto Canada
Distribution: Slackware 14.0
Posts: 4,616
|
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.
|
06-19-2010, 04:54 PM
|
#5
|
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 2,487
Original Poster
Rep:
|
Quote:
Originally Posted by camorri
|
Thanks. I'll give it a try.
Last edited by stf92; 06-19-2010 at 07:20 PM.
|
|
|
|
06-19-2010, 07:14 PM
|
#6
|
|
LQ Veteran
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,089
|
Yeah, Audacity is very good when you want to record sound.
|
|
|
|
06-19-2010, 07:22 PM
|
#7
|
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 2,487
Original Poster
Rep:
|
Quote:
Originally Posted by sycamorex
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).
|
|
|
|
06-19-2010, 08:08 PM
|
#8
|
|
LQ Newbie
Registered: Jul 2005
Posts: 7
Rep:
|
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.
|
|
|
|
|
06-19-2010, 08:16 PM
|
#9
|
|
Senior Member
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546
Rep:
|
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.
|
|
|
|
06-19-2010, 08:30 PM
|
#10
|
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 2,487
Original Poster
Rep:
|
Quote:
Originally Posted by maruchan
|
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.
|
|
|
|
06-19-2010, 08:53 PM
|
#11
|
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 2,487
Original Poster
Rep:
|
Quote:
Originally Posted by frenchn00b
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.
|
|
|
|
06-19-2010, 09:44 PM
|
#12
|
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 2,487
Original Poster
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:43 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|