LinuxQuestions.org
Review your favorite Linux distribution.
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
 
LinkBack Search this Thread
Old 10-11-2006, 07:28 AM   #1
Woofcat
LQ Newbie
 
Registered: Jan 2005
Distribution: Ubuntu 6.10
Posts: 21

Rep: Reputation: 15
Record /dev/dsp/


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.
 
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,731
Blog Entries: 4

Rep: Reputation: 58
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.
 
Old 10-11-2006, 03:14 PM   #3
Woofcat
LQ Newbie
 
Registered: Jan 2005
Distribution: Ubuntu 6.10
Posts: 21

Original Poster
Rep: Reputation: 15
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.
 
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,731
Blog Entries: 4

Rep: Reputation: 58
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.
 
Old 10-11-2006, 07:45 PM   #5
Woofcat
LQ Newbie
 
Registered: Jan 2005
Distribution: Ubuntu 6.10
Posts: 21

Original Poster
Rep: Reputation: 15
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)
 
Old 11-06-2006, 03:17 PM   #6
Woofcat
LQ Newbie
 
Registered: Jan 2005
Distribution: Ubuntu 6.10
Posts: 21

Original Poster
Rep: Reputation: 15
bump.

*Sorry but i still have the issue*
 
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

Rep: Reputation: 30
You'll only be able to do the sox thing if Skype uses ALSA. There may also be a hardware issue.
 
  


Reply

Tags
devdsp, skype, ubuntu


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are 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 10:09 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
Open Source Consulting | Domain Registration