sox-devel@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
From: Shane Blaser <shane.blaser@callfire.com>
To: sox-devel <sox-devel@lists.sourceforge.net>
Subject: Re: Adjusting write buffer for recording
Date: Mon, 12 Aug 2013 07:31:24 -0700	[thread overview]
Message-ID: <CACB3T6ER5ED-58EM1XXrAzrfTtD319CmwU+w19e0VXJqEaggiA@mail.gmail.com> (raw)
In-Reply-To: <20130812060933.GA6491@www.stare.cz>


[-- Attachment #1.1: Type: text/plain, Size: 2003 bytes --]

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 <hans@stare.cz> 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
>

[-- Attachment #1.2: Type: text/html, Size: 3142 bytes --]

[-- Attachment #2: Type: text/plain, Size: 405 bytes --]

------------------------------------------------------------------------------
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

[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
SoX-devel mailing list
SoX-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-devel

  reply	other threads:[~2013-08-12 14:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-09 21:05 Adjusting write buffer for recording Shane Blaser
2013-08-11 17:10 ` Jan Stary
2013-08-12  5:11   ` Shane Blaser
2013-08-12  6:09     ` Jan Stary
2013-08-12 14:31       ` Shane Blaser [this message]
2013-08-12 16:03         ` Jan Stary
2013-08-12 16:16           ` Shane Blaser
2013-08-12 17:11             ` Jan Stary
2013-08-12 17:28               ` Shane Blaser
2013-08-12 17:48                 ` Jan Stary

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.sourceforge.net/lists/listinfo/sox-devel

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACB3T6ER5ED-58EM1XXrAzrfTtD319CmwU+w19e0VXJqEaggiA@mail.gmail.com \
    --to=sox-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/sox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).