Well, in the direct sense...no...wave files have a header which is not completed until the end of the file is reached and the file size is known. But I think you can do this: You can create a memory player Add the memory player to the conference bridge conference your user conf_slot to the memory player conf_slot so they hear what is played there. conference the wave recorder conf_slot to the memory player conf_slot so the memory player now has an audio source. That should do it. You should hear the audio actually before or as it is written. Never tired it myself. But that would be approach I would try. At 03:12 AM 7/9/2009, tony tang wrote: >Hi all, > >I am currently using the Python binding of >PJSUA-API to create a recorder, writing to a wav file. >In an attempt to detect a moment of near >silence(in a non-noisy channel), I am using the >python WAVE module to read frames from the >created wav file as its being written to. From >experimentation the size of the wav file appears >to increase, however the WAVE module is >unable to read the frames until the call has ended. >Is the wav writing to a buffer and only the >metadata of the wav file being updated? >Is it possible for concurrent reading and >writing to the wav file(On ms os)? If not, can small >segments of the wav file be accessible for sampling? > >Kind regards > >Tony > >{sorry if this is a re-post, my previous one appears to be bounced} > > >---------- >Beyond Hotmail ? see what else you can do with >Windows Live. <http://clk.atdmt.com/UKM/go/134665375/direct/01/>Find out more. >_______________________________________________ >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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090713/6f70495a/attachment.html>