Recording from input to soundcard
Hi Folks,
I just installed a Creative Labs Sounsblaster Live! 5.1 digital,
on a SuSe-7.2 system, and I'm driving it with ALSA.
No problem with playing .wav.files (using 'aplay'), nor with
getting output on the speaker "Line Out" when playing audio CD
or using input from microphone or speaker line from another
source as input.
However, I also want to be able to _record_ input (from microphone
or input line), generating a .wav file, and I have not been able to
find out how to do this. All attempts seem to lead to a .wav file
which stores many kilobytes of silence!
Any suggestions?
With thanks,
Ted.
--------------------------------------------------------------------
E-Mail: (Ted Harding)
If you are using KDE be sure to disable "start aRts sound server on startup" in the KDE control center under sound. Arts has screwed up recording for as long as I have been using Linux. I keep hoping that they will fix it but it is still broken in 8.2. If you are recording from the command line I like using the aumix program to control the levels. If you are using krecord then kmix does the job well enough. Let me know if I can help, all I do is record a couple of radio shows off the local NPR station that happen at a bad time for me. There are some simple command line tools that can be scripted and ran as a cron job fairly easily to record directly to mp3, ogg, or wav. pben On Monday 19 May 2003 06:05 pm, Ted Harding wrote:
Hi Folks,
I just installed a Creative Labs Sounsblaster Live! 5.1 digital, on a SuSe-7.2 system, and I'm driving it with ALSA.
No problem with playing .wav.files (using 'aplay'), nor with getting output on the speaker "Line Out" when playing audio CD or using input from microphone or speaker line from another source as input.
However, I also want to be able to _record_ input (from microphone or input line), generating a .wav file, and I have not been able to find out how to do this. All attempts seem to lead to a .wav file which stores many kilobytes of silence!
Any suggestions?
With thanks, Ted.
On Mon, 19 May 2003 18:40:06 -0500
Paul Benjamin
Arts has screwed up recording for as long as I have been using Linux.
This is not true. I have no problems recording on my system either with or without aRtsd. I am using an SB Live! Charles -- "If you want to travel around the world and be invited to speak at a lot of different places, just write a Unix operating system." (By Linus Torvalds)
Well I have a SB Live also and aRts always screws up recording from the line input. I have never recorded off the microphone so maybe they didn't screw that up. pben On Monday 19 May 2003 07:07 pm, Charles Philip Chan wrote:
On Mon, 19 May 2003 18:40:06 -0500
Paul Benjamin
wrote: Arts has screwed up recording for as long as I have been using Linux.
This is not true. I have no problems recording on my system either with or without aRtsd. I am using an SB Live!
Charles
On Mon, 19 May 2003 20:06:43 -0500
Paul Benjamin
Well I have a SB Live also and aRts always screws up recording from the line input.
I have never recorded from line input, so I can't comment on that. If you think there is a bug though, why did you not report it instead of just wishing for them to fix it? Charles -- Your job is being a professor and researcher: That's one hell of a good excuse for some of the brain-damages of minix. (Linus Torvalds to Andrew Tanenbaum)
Report it to who. If you have been following the mess that was aRts under KDE under 2.x the KDE developers had their hands full. The sound system was in a sorry state in 2000. They have done some work on it but the grand plan for aRts is still a long way from from being done. The mailing list showed that they knew of the problem in 2000 they have always been more interested in playback and not recording. On Monday 19 May 2003 08:30 pm, Charles Philip Chan wrote:
On Mon, 19 May 2003 20:06:43 -0500
Paul Benjamin
wrote: Well I have a SB Live also and aRts always screws up recording from the line input.
I have never recorded from line input, so I can't comment on that. If you think there is a bug though, why did you not report it instead of just wishing for them to fix it?
Charles
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 19 May 2003 18:05, Ted Harding wrote:
Hi Folks,
I just installed a Creative Labs Sounsblaster Live! 5.1 digital, on a SuSe-7.2 system, and I'm driving it with ALSA.
No problem with playing .wav.files (using 'aplay'), nor with getting output on the speaker "Line Out" when playing audio CD or using input from microphone or speaker line from another source as input.
However, I also want to be able to _record_ input (from microphone or input line), generating a .wav file, and I have not been able to find out how to do this. All attempts seem to lead to a .wav file which stores many kilobytes of silence!
Any suggestions?
With thanks, Ted.
I'm not saying Ben's suggesrtion is wrong in any way (it was you who also replied wasn't it Ben?), but I've never turned off the Arts server to do any recording (through the microphone/webcam only). I've always just done it through the command line with 'record'. just do a 'man record', and you'll get all the info you need for any options you want to use, hopefully this'll work out for you and you won't have to turn anything off, and if not, I hope Bens suggestion does you right instead. <S> John - -- A butterfly is: Pretty,soft,harmless...and useless, just like M$N. My Penguin and my Gecko eat butterflies. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) iD8DBQE+yXaZH5oDXyLKXKQRArfaAKCNgPd16H5uu+Ag0E4i6z98fpPG4ACfSpYm bZDu9mzXCj3lxqtPT4x3w2c= =yafZ -----END PGP SIGNATURE-----
On Tue, 20 May 2003 00:05:28 +0100 (BST)
(Ted Harding)
All attempts seem to lead to a .wav file which stores many kilobytes of silence!
How are you trying to record? Are you sure that the mic is not muted? Is the mic selected as the recording device in alsamixer (if you are using ALSA)? If you are trying from the command line I suggest either using arecord (part of ALSA-utils) or rec (part of sox). If want a GUI program you might want to try either krec or xsox. Charles -- "I'd crawl over an acre of 'Visual This++' and 'Integrated Development That' to get to gcc, Emacs, and gdb. Thank you." (By Vance Petree, Virginia Power)
On Monday 19 May 2003 19:05, Ted Harding wrote:
However, I also want to be able to _record_ input (from microphone or input line), generating a .wav file, and I have not been able to find out how to do this.
rec -s w -c 2 -r 44100 myfile.wav *************************************************** Powered by SuSE Linux 8.0 Professional KDE 3.0.0 KMail 1.4 This is a Microsoft-free computer Bryan S. Tyson bryantyson@earthlink.net ***************************************************
On 19-May-03 Ted Harding wrote:
I just installed a Creative Labs Sounsblaster Live! 5.1 digital, on a SuSe-7.2 system, and I'm driving it with ALSA.
No problem with playing .wav.files (using 'aplay'), nor with getting output on the speaker "Line Out" when playing audio CD or using input from microphone or speaker line from another source as input.
However, I also want to be able to _record_ input (from microphone or input line), generating a .wav file, and I have not been able to find out how to do this. All attempts seem to lead to a .wav file which stores many kilobytes of silence!
Any suggestions?
Thanks to the people who wrote with suggestions: John (yonaton), Charles,
Bryan, for 'record', 'arecord' and 'rec'. The problem remains the same:
though the input (whether from microphone or line input) can be heard
on the speaker, all of these commands produce the same result: a .wav
file which after the initial header contains data which are all zero-value
bytes, i.e. silence! It's as if either the recording program is reading
from the wrong device, or the sound-card is not making the audio data
available to be read by the program.
The corresponding "play" programs all work fine for playing .wav files
through the card, so they know where to send the data for playing, which
makes me think the "record" programs should also know where to get the
data for recording. This makes me suspect that the card may not be
revealing the data for the sound signals it is receiving via the inputs.
I've tried an assortment of "mixer" programs, to no avail.
On an old machine (SuSE-5.2 ... ) I had no difficulties of this kind;
but there I had installed a copy of OSS which I had paid for, since
at that time it was the only way to get sound to work decently. I'd
like to avoid that route this time, if possible!
With thanks, and hoping for further ideas!
Ted.
--------------------------------------------------------------------
E-Mail: (Ted Harding)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 20 May 2003 04:50, Ted Harding wrote:
On 19-May-03 Ted Harding wrote:
I just installed a Creative Labs Sounsblaster Live! 5.1 digital, on a SuSe-7.2 system, and I'm driving it with ALSA.
No problem with playing .wav.files (using 'aplay'), nor with getting output on the speaker "Line Out" when playing audio CD or using input from microphone or speaker line from another source as input.
However, I also want to be able to _record_ input (from microphone or input line), generating a .wav file, and I have not been able to find out how to do this. All attempts seem to lead to a .wav file which stores many kilobytes of silence!
Any suggestions?
Thanks to the people who wrote with suggestions: John (yonaton), Charles, Bryan, for 'record', 'arecord' and 'rec'. The problem remains the same: though the input (whether from microphone or line input) can be heard on the speaker, all of these commands produce the same result: a .wav file which after the initial header contains data which are all zero-value bytes, i.e. silence! It's as if either the recording program is reading from the wrong device, or the sound-card is not making the audio data available to be read by the program.
The corresponding "play" programs all work fine for playing .wav files through the card, so they know where to send the data for playing, which makes me think the "record" programs should also know where to get the data for recording. This makes me suspect that the card may not be revealing the data for the sound signals it is receiving via the inputs.
I've tried an assortment of "mixer" programs, to no avail.
On an old machine (SuSE-5.2 ... ) I had no difficulties of this kind; but there I had installed a copy of OSS which I had paid for, since at that time it was the only way to get sound to work decently. I'd like to avoid that route this time, if possible!
With thanks, and hoping for further ideas! Ted.
Hmmm...perhaps it *is* a different device that needs to be used(?), I mean, do you have a webcam with built in microphone plugged in to the system *and* a regular microphone? On alsamixergui, have you 'unchecked' 'SBLive Analogue Output Jack' over to the far right of the mixer? Also, with alsamixergui, you can tick any of the slider controls that have white circles under the small pair of speakers on any particular control, maybe ticking one or two of these on each device will get you a recording? I'm just throwing stuff out in a brainstorming session, that way someone else might pick up something trivial that others missed and bring *that* up and maybe that'll solve the problem. John - -- A butterfly is: Pretty,soft,harmless...and useless, just like M$N. My Penguin and my Gecko eat butterflies. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) iD8DBQE+yk6/H5oDXyLKXKQRAlgvAKCvwWve0FcxwJzRHIUvd1ZCiu5qzgCfVTae MxMvOuIJoOJ4NOqssCDGQyE= =luW2 -----END PGP SIGNATURE-----
participants (5)
-
Bryan Tyson
-
Charles Philip Chan
-
John
-
Paul Benjamin
-
Ted.Harding@nessie.mcc.ac.uk