Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Minimum audio length for uuid_record


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
dule.maillist at gmail...
Guest





PostPosted: Wed Sep 30, 2009 9:54 pm    Post subject: [Freeswitch-users] Minimum audio length for uuid_record Reply with quote

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?

We're running the FS 1.0.4 tag, on a windows xp 64bit machine. We start uuid_record from a lua script, recording at 8khz, if the recording is shorter than about 5s, the file gets blown away, but we may want to keep recordings that are 3-4s long. 


Thanks,


Dan
Back to top
jason at jasonjgw.net
Guest





PostPosted: Wed Sep 30, 2009 10:42 pm    Post subject: [Freeswitch-users] Minimum audio length for uuid_record Reply with quote

Dan Le <dule.maillist@gmail.com> wrote:
Quote:
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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
dule.maillist at gmail...
Guest





PostPosted: Thu Oct 01, 2009 11:08 pm    Post subject: [Freeswitch-users] Minimum audio length for uuid_record Reply with quote

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@jasonjgw.net (jason@jasonjgw.net)> wrote:
Quote:
Dan Le <dule.maillist@gmail.com (dule.maillist@gmail.com)> wrote:
Quote:
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@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services