| Author |
Message |
mcewanw
Joined: 16 Aug 2007 Posts: 1482 Location: New Zealand
|
Posted: Wed 02 Dec 2009, 09:04 Post subject:
uses intermediate files and no pause control |
|
| Flash wrote: | | I've used mhWaveEdit to record audio tapes in Puppy, I think from the Line in but it may have been the Mic input, I forget. I saved the recordings as mp3, but as you can see, mhWaveEdit can save them in just about any format you can think of. |
Yes, I tried it and it works. However, it isn't recording straight to mp3. Rather it stores big temporary wav files in the directory ~/mhwaveedit, which is fine if you have a huge disk, but I don't. The beauty of the likes of arecord ... | lame ... is that you are recording mp3 files on the fly without resorting to temporary wav storage.
For recording mp3 voice clips it is also very useful to have a pause function... which mhwaveedit doesn't seem to provide. Nice program though if you have sufficient disc space for whatever you are recording.
_________________ Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9846 Location: Arizona USA
|
Posted: Wed 02 Dec 2009, 09:41 Post subject:
|
|
Actually I think mhWaveEdit creates the initial file as digitized voice, the equivalent of a Raw picture file, then converts it to whatever format you tell it to when you Save the file. But yes, you're right that the initial file is huge.
|
|
Back to top
|
|
 |
mikeb

Joined: 23 Nov 2006 Posts: 4378
|
Posted: Wed 02 Dec 2009, 11:17 Post subject:
|
|
| Quote: | | For recording mp3 voice clips it is also very useful to have a pause function |
hmm good point...I'm not sure how a true pause function would be implemented though it is possible to pause and resume processes with kill...I did that for a simple cd player and it worked so one to try out. Otherwise I could have it create incremental files with each pause... eg blah_01.mp3 blah_02.mp3 etc.
More food for thought....
mike
|
|
Back to top
|
|
 |
mcewanw
Joined: 16 Aug 2007 Posts: 1482 Location: New Zealand
|
Posted: Wed 02 Dec 2009, 12:05 Post subject:
pause |
|
yes, I once submitted a recording program called wiakrecord to the forum, which included a pause function. That used kill -SIGSTOP and kill -SIGCONT (that part of the program was written in C so that the pause worked virtually instantaneously, but from bash, kill -STOP and kill -CONT <process_id> work fine to pause/continue the arecord ... | lame ... process pipe.
A picture of wiakrecord from its home site is here:
http://wiak.org
I never published the C source code part of wiakrecord though, just the bash and gtkdialog frontend. The C was part of something much bigger I was writing - a control language/protocol for controlling pipelines of processes. I may get back to that some day and release it; family circumstances took me away from it back then. I do have a version of krecspk/wrecspk which includes a pause function written using kill, but it has a few bugs which I've still to iron out. The pause works fine on record, but is not so good on playback - usign madplay (I'll probably write a small C function version of kill just for the pause function). I'll upload the code to the forum in a day or two incase anyone is interested in it, but it would be worth adding pause to your wee record script as a simple solution, I'd say.
_________________ Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9846 Location: Arizona USA
|
Posted: Wed 02 Dec 2009, 18:46 Post subject:
Re: uses intermediate files and no pause control |
|
| mcewanw wrote: | | ...For recording mp3 voice clips it is also very useful to have a pause function... which mhwaveedit doesn't seem to provide. ... |
Guess what, mhWaveEdit can pause during a recording session. The Pause button doesn't show up until you click the Start recording button. Bad GUI design?
I can't see any way to set the mp3 parameters that mhWaveEdit will use when it saves an audio file as an mp3.
|
|
Back to top
|
|
 |
mikeb

Joined: 23 Nov 2006 Posts: 4378
|
Posted: Wed 02 Dec 2009, 21:26 Post subject:
|
|
Sometimes i think that between us loyal puppy users we cound come up with some neat applicatins. I'm a bit bogged down in truly unexiting business software but am looking forward to turning my attention towards more interesting subjects.
As far as mhWaveEdit is concerned it seemed to have a habit of leaving large temp files dumped everywhere...audacity is better house trained but I only get reliable performance out of the stable 0.2 series (pet needed).
from my experience bit of juicy scripting can produce wonders...a bit of polishing of my feeble attempt could be just the ticket .....linux runs on command line apps so connecting them with a gui world is worth the effort
mike
|
|
Back to top
|
|
 |
mikeb

Joined: 23 Nov 2006 Posts: 4378
|
Posted: Fri 04 Dec 2009, 18:42 Post subject:
|
|
| Quote: | A picture of wiakrecord from its home site is here:
http://wiak.org |
looks neat
Well I had a play on 4.12 with alsa 1.0.20 ...arecord gives the same version and still ok...odd...the command line you gave will fail as it is calling for a sample rate that the sound card may not support...the full line is ok....so still a mystery.
I did fiddle and add a pause function...seems to work ok...ignore the weird gtkdialog layout ...its the best I could get..I don't think it like markup too much
mike
ps forum notifications are erratic ... I keep missing replys.
| Description |
More crude scripting :)
|

Download |
| Filename |
Simple Recorder with Pause Function.tar.gz |
| Filesize |
1.2 KB |
| Downloaded |
115 Time(s) |
|
|
Back to top
|
|
 |
PaulBx1
Joined: 16 Jun 2006 Posts: 2308 Location: Wyoming, USA
|
Posted: Sat 05 Dec 2009, 00:10 Post subject:
|
|
I was going to try wavrec but got this error:
Device or resource busy:
Opening audio device /dev/dsp
Interestingly, I could record with that simple "recorder' script. Anyone guess why wavrec doesn't work? (The machine is a Sony VGN-C140G)
I am a rank newb at this. I'm also wondering how to set the appropriate input levels, to get the highest volume without clipping.
|
|
Back to top
|
|
 |
mikeb

Joined: 23 Nov 2006 Posts: 4378
|
Posted: Sat 05 Dec 2009, 08:06 Post subject:
|
|
/dev/dsp will not work if anything else is using audio..a limitation of oss...alsa does not have this problem whivh is what the simple recorder uses.
As for levels...its trial and error unless you use an application with level meters.(or Spdif)
mike
|
|
Back to top
|
|
 |
|