UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Sigh. Can someone lend a hand with the usual Linux "friendliness" over here?
I am trying to record some sound. Just talk on a cheap microphone. I used Slackware for a couple of years, and just used the 'rec' command. I can't remember the exact command line, but I remember it was dead simple. Now I use Ubuntu and can't figure out how to use 'rec'. None of my command lines is working and the manual seems pretty terse. I can't figure out how to use it.
I also tried Audacity. That would be better, a more visual take of what is going on, so I can monitor time and noise levels. But it isn't working either:
Code:
luc$[546]videos> audacity &
[2] 380
[1] Done audacity
lukub$[546]videos> jackd 0.109.2
Copyright 2001-2005 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK compiled with System V SHM support.
loading driver ..
creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
control device hw:0
configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 16bit little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 16bit little-endian
ALSA: use 2 periods for playback
So I press the Record button and always get this error:
Quote:
Error while opening sound device. Please check the input device settings and the project sample rate.
That error brings up a lot of search hits on Google, but all threads seem to recommend setting it all to either OSS or Alsa Default, none of that is helping me.
I have tried all the options offered by Audacity, none of them seems to work. Here is a screenshot of my options:
What samplerate do you use? If you use 48000 you should make sure it's the same in all settings. Otherwise you'll get strange errors. You can also select alsa instead of jack as sound driver in Audacity, that way you won't have to bother with jack for now. Do you have "arecord" installed?
If you are using Skype with a "hw" device, then that's the problem: most soundcards only support one instance that directly accesses input/output at the same time.
Are you using Skype while trying to record? If so, I suggest you set both Skype and Audacity to use the "default" ALSA audio device, that way they will share one input.
I'm not sure what you mean by "the same samplerate in all settings". Audacity just gives me one.
Yes, I have "arecord" installed and it's just as easy to use as it used to be with 'rec' on Slackware. That's a start, thanks! But I wish I could at least see how much time has elapsed. That would be useful. I had that with 'rec' on Slackware. I am checking this 'arecord' application's documentation and don't find that option.
It would be even better if I could use Audacity to record.
TITiAN,
Skype is turned off all the time. I use it rarely ever, just for international calls. See my reply to Retrievil_Knievil, I can record fine with 'arecord' on the console. Now I just wish I could use Audacity or, at the very least, monitor the recording time.
These are what I use.I find the first one suitable for speech and the second one if Im singing and playin'guitar.If you want two channels change the -c 1 to -c 2.You can also change the samplerate to higher if you need it.I made the second one into an executable and put it in /usr/local/bin and I named it "micrecord".So all I do is open a terminal and enter micrecord to begin.Works like a charm.
I just tested ALSA input/output with my mic with Audacity 1.3.6; it just works on my system (I tested both the "default" device for both i/o and a hw device for both i/o). Audacity says it is using portaudio v19, though I don't have any "portaudio" package installed on my system...
Could you be using an older version of audacity? I remember having similar problems with audacity some time ago, especially with jack [which I personally only recommend for music production] (it seems to me with the 1.3.6 version it all works better). edit: and jack now works nicely with audacity.
I'm not saying that it must be 1.3.6. I don't know when exactly Audacity improved, but it did (I think around last year, not sure); so please try upgrading if the version you have right now doesn't work anyway.
BTW there are a lot of simpler recording applications, say krec for KDE and gnome-sound-recorder for Gnome (I don't know about the package names, but I'm sure about the cmd line names), the one that comes with the Gnome desktop even uses FLAC by default for high quality (flac=free lossless audio codec), which saves disk space.
Audacity is a good program for mastering/editing/etc. audio material, other tools, like the "rec" command might be more suitable for simple recording.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.