[Freeswitch-users] Detecting Energy Levels on a Channel with mod_lua

Michael Collins msc at freeswitch.org
Mon Mar 1 16:15:12 PST 2010


On Mon, Mar 1, 2010 at 2:59 PM, Mathieu Rene <mrene_lists at avgs.ca> wrote:

> An easy way is to do an average of the absolute value of each L16 sample
> over a period of time. Im not quite sure how to access audio channels from
> within Lua but if you are in C you can use switch_core_session_read_frame()
> to get audio frames.
>

Show off! :) Related question: do media bugs allow you to access this kind
of information? Just curious...
-MC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100301/791c5d9e/attachment-0002.html 


More information about the FreeSWITCH-users mailing list