LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack Search this Thread
Old 03-03-2005, 04:26 PM   #1
flamesrock
Member
 
Registered: Aug 2003
Distribution: Gentoo 2006.1
Posts: 405

Rep: Reputation: 30
How to Record Sound Directly from /dev/dsp


Hi,

I'm curious, how would one go about recording sound from /dev/dsp? I know roughly how to save the data to a file:

$/dev/dsp >> file.bin

But how do I encode it, as say, a flac, ogg or mp3 while it is being recorded?

-thanks in advance
 
Old 03-03-2005, 09:10 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 47
i would just use audacity to make it easy
you can also use the command line "arecord"
you could even try piping aplay through sox to get those different formats
but why bother when you have audacity so you can see what the heck is hapening

one extreemly important note -- you can't just record from a dump to /dev/dsp
not even using an old oss driver could you do that (only one think can access the device at a time) but since alsa is just faking like it's oss you can with alsa record from /dev/dsp
but you still have to use (enable) apropriate capture devices in the alsa mixer
 
Old 03-03-2005, 10:50 PM   #3
flamesrock
Member
 
Registered: Aug 2003
Distribution: Gentoo 2006.1
Posts: 405

Original Poster
Rep: Reputation: 30
thanks
 
  


Reply


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 sound and /dev/dsp not found TXJustin Mandriva 3 07-30-2009 12:59 PM
devfs and devfsd don't create /dev/dsp or /dev/sound/dsp ? behmjose Linux - Hardware 2 10-02-2006 12:27 PM
no sound from /dev/dsp Dargason Linux - Software 24 01-06-2006 02:49 PM
No sound but /dev/dsp present meldar Linux - Hardware 7 03-06-2004 02:15 PM
sound : /dev/dsp j-charles Linux - Newbie 4 02-28-2002 03:31 PM


All times are GMT -5. The time now is 12:28 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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration