View previous topic :: View next topic |
Author |
Message |
mattdfong at gmail.com Guest
|
Posted: Wed Oct 28, 2009 11:46 am Post subject: [Freeswitch-users] Determining Frame Size |
|
|
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
|
Posted: Thu Oct 29, 2009 10:44 am Post subject: [Freeswitch-users] Determining Frame Size |
|
|
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 |
|
|
|