LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-14-2010, 07:29 PM   #1
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
Set recording sample rate in gnome-sound-recorder?


Is there any way of changing the recording sample rate in the GNOME sound recorder? It's set at 22050Hz, and I'd like to record at 44100Hz. I can't find anything in the GUI to set preferences, and I can't find a text configuration file to edit, either.

I've tried rec and arecord, but they both give a similar message:

Code:
mrcode@linuxbox:~$ arecord -f cd -t wav out.wav
ALSA lib pcm_dmix.c:947:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
arecord: main:590: audio open error: Invalid argument
Code:
mrcode@linuxbox:~$ rec -t wav -r 44100 -c 2 out.wav
ALSA lib pcm_dmix.c:947:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
rec formats: can't open input  `default': cannot open audio device
Here's my .asoundrc, if that helps:

Code:
pcm.!default {
        type plug
        slave.pcm "dmix"
}
I made it this way so that I wouldn't get audio lag in programs, but it also means I can't play audio in more than one application at a time, apparently (with some odd exceptions). I just got it from a thread in the Ubuntu forums, and it's worked fine for me so far.

I'm really clueless here, as I've never had to fiddle around much with audio settings (let alone ALSA) before. I'm guessing I have to add something to .asoundrc, but I have no idea what...

Last edited by MrCode; 03-14-2010 at 07:31 PM.
 
Old 03-15-2010, 10:29 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Code:
arecord -d 10 -f cd -t wav -D copy foobar.wav
              will  record  foobar.wav  as  a 10-second, CD-quality wave file,
              using the PCM "copy" (which  might  be  defined  in  the  user’s
              .asoundrc file as:
              pcm.copy {
                type plug
                slave {
                  pcm hw
                }
                route_policy copy
              }
man arecord

Also, if you have gconf-editor installed, you can change the sample rate of gnome-sound-recorder there.

It's under apps > gnome sound recorder
double click the sample rate line to change it.

Last edited by smoker; 03-15-2010 at 11:16 AM.
 
Old 03-15-2010, 05:53 PM   #3
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864

Original Poster
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
Thanks for the info! I didn't try the lines in the man page because I was afraid it would trash my sound setup, but all I did was append it to the end of my .asoundrc and arecord works great!

(great, now I feel dumb because I didn't use the info from the man page the way I was supposed to )
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing sample rate of sound maikki Programming 9 09-29-2009 07:08 PM
Audacity/Sound Recorder not responding when recording is attempted devinmcelheran Linux - Newbie 5 02-03-2009 01:24 PM
can I remove Gnome Sound Recorder? newbiesforever Linux - Software 1 11-10-2008 02:13 PM
wrong sample rate for Gnome system sounds sharkzf6 Linux - Hardware 0 03-10-2005 10:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:49 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration