[Freeswitch-users] Minimum audio length for uuid_record
Dan Le
dule.maillist at gmail.com
Thu Oct 1 20:59:54 PDT 2009
Thanks, I think I found the thread you were referring to
("[Freeswitch-users] session record does not for very short calls"), which
doesn't seem to be a solution for my situation. However, I did find that
using session:recordFile() didn't delete the file if it was really short.
And following that thread lead me to an interesting channel variable that
could be useful to us, record_ms, but having trouble getting it to reflect
the audio length. I can see the variable when printing data from the info
application, but it's always 0. My snippet of code is very simple:
if session:ready() then
session:recordFile("C:/Temp/recording.wav", 30, 600, 6);
local record_length = session:getVariable("record_ms");
freeswitch.consoleLog("INFO", "Recorded a " .. record_length .. " ms
file.\n");
end
Another side question, the silence secs parameter (in this example, 6), is
that 6s silence hits during the entire recording session or 6s of
consecutive silence? From a few tests, it seems to be the former, but just
wanted to verify, something that would make a good addition to the wiki.
Dan
On Wed, Sep 30, 2009 at 11:31 PM, Jason White <jason at jasonjgw.net> wrote:
> Dan Le <dule.maillist at gmail.com> wrote:
> > We're running into a problem with the minimum file size when recording
> using
> > uuid_record. It seems if the audio is too short it deletes the audio
> file.
> > Is there a way to override that?
>
> Yes. It was discussed on the list recently. I suggest searching the list
> archives. Someone may have documented it on the wiki by now also.
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091001/bfa19e09/attachment-0002.html
More information about the FreeSWITCH-users
mailing list