19 июля 2011, 09:19 от Konstantinos Birkos <kmpirkos@xxxxxxxxxxxxxx>: > > > > 19 июля 2011, 09:19 от Konstantinos Birkos <kmpirkos@xxxxxxxxxxxxxx>: > > Actually I want to perform sequential audio recordings with a fixed > > duration, compress the tracks and send them via ftp to a remote > > location. I want the minimum gap possible between successive tracks. > > I mean that when the first track ends, recording the second track has to > > be initiated almost immediately. Simply calling arecord on a periodical > > basis introduces some gaps between tracks because I suppose the audio > > device has to be opened and closed every time and configured with the > > recording parameters. If I make the period I call arecord equal to the > > recording period I receive errors from the audio device that indicate > > that it is not yet ready from the previous recording. > > > > So I thought of using a custom program like this, in which every x > > seconds I could create a wav file. At the same time, the contents of the > > buffer would be directly available for the new recording, minimizing losses. > > > > Regards, > > Konstantinos > > IIRC, 'arecord' can record in raw (i.e. headerless) format and can write to stdout. SoX and ecasound' can do this too. So, just write a script (I'd recommend) Perl) that receives this headerless raw data from stdin and packs the data into WAV format. Regards, Sergei. ------------------------------------------------------------------------------ Magic Quadrant for Content-Aware Data Loss Prevention Research study explores the data loss prevention market. Includes in-depth analysis on the changes within the DLP market, and the criteria used to evaluate the strengths and weaknesses of these DLP solutions. http://www.accelacomm.com/jaw/sfnl/114/51385063/ _______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user