Re: [SoX-devel] Adjusting write buffer for recording

2013-08-12 Thread Jan Stary
On Aug 12 10:28:51, shane.bla...@callfire.com wrote: > Just to confirm there is no way to have rec not pause once it has started? I repeat: call rec(1) without the silence effect. That way, you record everything, continuously. > I could use silence detection to start the recording then record eve

Re: [SoX-devel] Adjusting write buffer for recording

2013-08-12 Thread Shane Blaser
Thanks Jan, Just to confirm there is no way to have rec not pause once it has started? I could use silence detection to start the recording then record everything until we see the set number of seconds of silence ? Thanks again Shane On Mon, Aug 12, 2013 at 10:11 AM, Jan Stary wrote: > On A

Re: [SoX-devel] Adjusting write buffer for recording

2013-08-12 Thread Jan Stary
On Aug 12 09:16:32, shane.bla...@callfire.com wrote: > > On Aug 12 07:31:24, shane.bla...@callfire.com wrote: > > > Yes i am calling stat, > > > > Wouldn't it be easire to just write to a pipe, > > and have your application read from that pipe? > > > Maybe not sure the file seems to work. No doubt

Re: [SoX-devel] Adjusting write buffer for recording

2013-08-12 Thread Shane Blaser
comments inline On Mon, Aug 12, 2013 at 9:03 AM, Jan Stary wrote: > On Aug 12 07:31:24, shane.bla...@callfire.com wrote: > > Yes i am calling stat, > > Wouldn't it be easire to just write to a pipe, > and have your application read from that pipe? > Maybe not sure the file seems to work. > >

Re: [SoX-devel] Adjusting write buffer for recording

2013-08-12 Thread Jan Stary
On Aug 12 07:31:24, shane.bla...@callfire.com wrote: > Yes i am calling stat, Wouldn't it be easire to just write to a pipe, and have your application read from that pipe? > 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

Re: [SoX-devel] Adjusting write buffer for recording

2013-08-12 Thread Shane Blaser
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

Re: [SoX-devel] Adjusting write buffer for recording

2013-08-11 Thread Jan Stary
On Aug 11 22:11:44, shane.bla...@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 f

Re: [SoX-devel] Adjusting write buffer for recording

2013-08-11 Thread Shane Blaser
Rec writes to a file I watch the file. I listen to the sound coming in and watch the file size. There is a period of silence then when volume rises the file is written to. But this introduces a delay I can not afford I have adjusted the buffer down to 128 ( below that I get constant overrun) I

Re: [SoX-devel] Adjusting write buffer for recording

2013-08-11 Thread Jan Stary
On Aug 09 14:05:32, shane.bla...@callfire.com wrote: > Hello I have an application that processes audio as rec writes the file. Does this mean that rec(1) writes into a pipe and your application is reading that pipe? > rec is buffering the data before it writes and I get > the updates about 2 or