29 Oct
2009
29 Oct
'09
3:25 p.m.
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