[Freeswitch-users] Determining Frame Size

Chris Burns chris at cloudtel.com
Thu Oct 29 08:25:37 PDT 2009


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






More information about the FreeSWITCH-users mailing list