LinuxQuestions.org
Have you listened to LQ Radio?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This 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

Tags used in this thread
Popular LQ Tags , , , ,

Reply
 
Thread Tools
Old 10-11-2006, 07:28 AM   #1
Woofcat
LQ Newbie
 
Registered: Jan 2005
Distribution: Ubuntu 6.10
Posts: 21
Thanked: 0
Record /dev/dsp/


[Log in to get rid of this advertisement]
I use Skype to call people and sometimes i want to record the call. Is there any quick and dirty way to dump /dev/dsp/ to a mp3 or something? Using Ubuntu 6.06 LTS.
Woofcat is offline  
Tag This Post , , , ,
Reply With Quote
Old 10-11-2006, 02:43 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,732
Blog Entries: 4
Thanked: 0
Sox...
Code:
sox -w -s -r 44100 -c 2 /dev/dsp -t raw - | lame -x -m s - filename.mp3
You may need to change this a bit depending on your setup.

Though, pretty much any sound recorder should work fine. If you use KDE then krec will do the trick. You will need to convert to mp3 manually though, as I believe it will be in wav format.

You could also use audacity. Just make sure your input levels are up and press record (the red circle button )

Last edited by bulliver; 10-11-2006 at 02:50 PM..
bulliver is offline     Reply With Quote
Old 10-11-2006, 03:14 PM   #3
Woofcat
LQ Newbie
 
Registered: Jan 2005
Distribution: Ubuntu 6.10
Posts: 21
Thanked: 0

Original Poster
Code:
jim@jim-desktop:~$ sox -w -s -r 44100 -c 2 /dev/dsp -t raw - | lame -x -m s - filename1.mp3
sox: Can't open input file '/dev/dsp': Device or resource busy
Assuming raw pcm input file : Forcing byte-swapping
LAME version 3.96.1 (http://lame.sourceforge.net/)
CPU features: MMX (ASM used), 3DNow! (ASM used), SSE
Using polyphase lowpass filter, transition band: 17249 Hz - 17782 Hz
Encoding <stdin> to filename1.mp3
Encoding as 44.1 kHz 128 kbps stereo MPEG-1 Layer III (11x) qval=3
It can't open it because skype is using it. Any other methods? Audacity yells at my for my sound devices not being configured.
Woofcat is offline     Reply With Quote
Old 10-11-2006, 03:49 PM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,732
Blog Entries: 4
Thanked: 0
You are using OSS then? OSS has issues with multiplexing.
You will likely get the same error from any other recording method unless using Alsa.
bulliver is offline     Reply With Quote
Old 10-11-2006, 07:45 PM   #5
Woofcat
LQ Newbie
 
Registered: Jan 2005
Distribution: Ubuntu 6.10
Posts: 21
Thanked: 0

Original Poster
I am fairly sure i use alsa, since you know i use alsamixer to change my volumes etc.

jim@jim-desktop:~$ /etc/init.d/alsa-utils restart

is how i restart my sound. For some reason. Do you know why this would happen? Could i like some how system link it then record the link (Woofcat fails at understanding syslinking and tons of other stuff)
Woofcat is offline     Reply With Quote
Old 11-06-2006, 03:17 PM   #6
Woofcat
LQ Newbie
 
Registered: Jan 2005
Distribution: Ubuntu 6.10
Posts: 21
Thanked: 0

Original Poster
bump.

*Sorry but i still have the issue*
Woofcat is offline     Reply With Quote
Old 11-07-2006, 12:20 PM   #7
FreeDoughnut
Member
 
Registered: Jun 2006
Distribution: Slackware 10.2, Debian Testing/Unstable, Ubuntu Breezy Badger, working on LFS
Posts: 228
Thanked: 0
You'll only be able to do the sox thing if Skype uses ALSA. There may also be a hardware issue.
FreeDoughnut is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
no /dev/dsp nor /dev/mixer on 2.6.9 amuro_ray Slackware 9 08-03-2009 03:54 PM
devfs and devfsd don't create /dev/dsp or /dev/sound/dsp ? behmjose Linux - Hardware 2 10-02-2006 01:27 PM
No /dev/dsp /dev/mixer etc david.skinner Linux - Software 2 05-19-2005 03:28 AM
How to Record Sound Directly from /dev/dsp flamesrock Linux - Software 2 03-03-2005 11:50 PM
/dev/dsp ixion Linux - General 7 01-09-2003 07:45 AM


All times are GMT -5. The time now is 09:13 PM.

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration