Hi, Yes, I think you can use the Adaptive Silence Detection [1], and create a simple media port just to filter the silence before the file writer, and perhaps a simple counter to decide if EOF is reached (after some contiguous silence frames). Here is a sample diagram: input (e.g: audio dev/file reader/conf bridge) -> custom media port (with silence detector) -> file/mem writer. [1] http://www.pjsip.org/pjmedia/docs/html/group__PJMEDIA__SILENCEDET.htm Regards, nanang On Wed, Mar 11, 2009 at 8:52 PM, Wayne Waldner <wpwaldner at hotmail.com> wrote: > It is common in IVR type applications to allow recording to stop > automatically if silence of (n) seconds is detected.? When using the File > Writer (Recorder), can anyone suggest a way to stop recording when a given > amount of silence has been detected?? I presume one could use the Adaptive > Silence Detection algorithm, but not sure if I am on the right track on > this.? If the Silience Detection algorithm is used, would one have to record > to memory buffer and ?pipe? the pcm data into the algorithm?? Perhaps a > special media port has to be created to implement this functionality.? Any > ideas? > > > > ________________________________ > Windows Live? Contacts: Organize your contact list. Check it out. > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >