Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[Freeswitch-users] Determining Frame Size


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





PostPosted: Wed Oct 28, 2009 11:46 am    Post subject: [Freeswitch-users] Determining Frame Size Reply with quote

I noticed that the wait_for_silence's <silence_hits> <listen_hits> use number of frames as base values (rather than seconds or milliseconds). I'd like to wait for 5 seconds of consistent silence, but I'm wondering how I can determine the sample rate (and thus frames per second) for an existing call. Is there a variable I can read? Thanks.

--matt
Back to top
chris at cloudtel.com
Guest





PostPosted: Thu Oct 29, 2009 10:44 am    Post subject: [Freeswitch-users] Determining Frame Size Reply with quote

Depends on your codec. Frame size = ptime. So it can vary from call to call,
but most you will find it to be 20ms.

So if we are using speex-wb at 20ms, each frame is 0.02 seconds long. 50
frames = 1 second of sound.

On October 28, 2009 12:37:56 pm Matthew Fong wrote:
Quote:
I noticed that the wait_for_silence's <silence_hits> <listen_hits> use
number of frames as base values (rather than seconds or milliseconds). I'd
like to wait for 5 seconds of consistent silence, but I'm wondering how I
can determine the sample rate (and thus frames per second) for an existing
call. Is there a variable I can read? Thanks.

--matt



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