[Freeswitch-users] Detecting Energy Levels on a Channel with mod_lua
Mathieu Rene
mrene_lists at avgs.ca
Mon Mar 1 14:59:31 PST 2010
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.
Mathieu Rene
Avant-Garde Solutions Inc
Office: + 1 (514) 664-1044 x100
Cell: +1 (514) 664-1044 x200
mrene at avgs.ca
On 1-Mar-10, at 5:29 PM, Michael Collins wrote:
>
>
> On Sun, Feb 28, 2010 at 3:36 AM, Matthew Fong <mattdfong at gmail.com>
> wrote:
> Is there anyway to detect energy levels on a channel that is being
> controlled by mod_lua? Please point me in the right direction if
> there is. Thanks.
>
> Is there a way to do it on a channel that is not controlled by Lua?!
> -MC
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100301/292351db/attachment-0002.html
More information about the FreeSWITCH-users
mailing list