Yes i am calling stat, But I can see that the file size does not change for a few seconds and then the data is flushed. What I am doing is decoding caller id on a phone line: So the flow goes like this: 1. rec listening with silence detection 2. Call comes in and recording starts. 3. Caller id is between 1st and second ring. (ok this is were the issue comes in) after the first ring I get the first part of the caller id signal written to disk (call it 1/2 of the caller id signal). (listening to the audio I know we have whole signal.) But not until after the second ring do I get the audio for the rest of the caller id written to disk. Can I have rec write silence to the file after the recording starts? Thanks for sticking with me on this Shane On Sun, Aug 11, 2013 at 11:09 PM, Jan Stary wrote: > On Aug 11 22:11:44, shane.blaser@callfire.com wrote: > > Rec writes to a file I watch the file. > > I listen to the sound coming in and watch the file size. > > So you are calling stat(2) in a loop or what? > That itself would introduce a delay. > > > There is a period of silence > > then when volume rises the file is written to. > > Yes, that's what the 'silence' effect does. > That's what you want, right? > > > But this introduces a delay I can not afford > > Well, if there is a half hour of 'silence', > there will be a half hour pause in writing to the file of course. > > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > SoX-devel mailing list > SoX-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sox-devel >