<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Thanks Steven,<br>
      <br>
      I got it working and reported my howto and findings in the wiki:<br>
      <a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org/wiki/Mod_stress">http://wiki.freeswitch.org/wiki/Mod_stress</a><br>
      <br>
      I found it to be a nice application, but as you explained, there
      are some false positives.<br>
      <br>
      Best regards<br>
      Peter<br>
      <br>
      On 01/22/13 12:39, Steven Ayre wrote:<br>
    </div>
    <blockquote
cite="mid:CAFiqYuncQhx7cf-1+WwFJ_RrpC2Ugwm4n3Cp=r-FbRG1N04cLw@mail.gmail.com"
      type="cite">Media bugs are used to hook into the call and provide
      decoded audio to the module. That requires transcoding, naturally.
      See&nbsp;stress_callback which is called for each audio frame plus some
      init/cleanup hooks, and read up on the API at&nbsp;<a
        moz-do-not-send="true"
        href="http://docs.freeswitch.org/group__mb1.html">http://docs.freeswitch.org/group__mb1.html</a>.
      <div>
        <br>
      </div>
      <div>I suspect read vs write would correspond to the
        speaking/listening directions of the channel. Read from caller,
        write to caller? The names come from the media bug API. The
        read/write options will add the corresponding media bug, stop
        will remove them.<br>
        <div><br>
        </div>
        <div>SWITCH_ADD_APP tells you it's a dialplan application - it's
          started from dialplan, although you can also trigger dialplan
          apps on a channel via ESL using uuid_broadcast.</div>
        <div><br>
        </div>
        <div>
          The FFT algorithm is used to extract the frequencies present
          in the sample (the power spectrum). The algorithm then tries
          to detect stressed based on that. Looks like the algorithm at
          least in part attempts to look for tremor in the voice. More
          tremor indicates more stress. Over a threshold it raises an
          event.</div>
        <div><br>
        </div>
        <div>Bear in mind that as it's pattern recognition (and little
          tested at that) you'll get a lot of false positives and false
          negatives. It's also looking for something in the voice that
          may or may not be there - some people might be able to speak
          with an unstressed voice when they're actually quite stressed.</div>
        <div><br>
        </div>
        <div>-Steve</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>
          <br>
          <br>
          <div class="gmail_quote">On 22 January 2013 11:19, Peter
            Steinbach <span dir="ltr">&lt;<a moz-do-not-send="true"
                href="mailto:lists@telefaks.de" target="_blank">lists@telefaks.de</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000">
                <div>Hello Anthony,<br>
                  <br>
                  although it may be incomplete, it may be useful for
                  us. Can you give us some basic explanation, how this
                  works? <br>
                  I can see in the code that there is a stress command
                  with read|write|stop parameter. <br>
                  Is this to be issued via event socket or is it a
                  dialplan application? I suspect that "read" somehow
                  starts the detection and "stop" somehow stops the
                  detection. For "write"&nbsp; I currently have no idea.<br>
                  <br>
                  I would be happy to test this and report my
                  configuration, explanations and examples in the wiki.
                  <br>
                  <br>
                  Best regards<span><font color="#888888"><br>
                      Peter</font></span>
                  <div>
                    <div><br>
                      <br>
                      <br>
                      On 01/22/13 00:30, Anthony Minessale wrote:<br>
                    </div>
                  </div>
                </div>
                <div>
                  <div>
                    <blockquote type="cite">
                      <div dir="ltr">That module is incomplete we made
                        it several years ago to test some code that was
                        supposed to pick up on stress in your voice in a
                        media bug so we could fire events and whisper
                        "lie" to the caller as he talked to the guy.
                        <div> <br>
                        </div>
                      </div>
                      <div class="gmail_extra"><br>
                        <br>
                        <div class="gmail_quote">On Mon, Jan 21, 2013 at
                          4:56 PM, Peter Steinbach <span dir="ltr">&lt;<a
                              moz-do-not-send="true"
                              href="mailto:lists@telefaks.de"
                              target="_blank">lists@telefaks.de</a>&gt;</span>
                          wrote:<br>
                          <blockquote class="gmail_quote"
                            style="margin:0 0 0 .8ex;border-left:1px
                            #ccc solid;padding-left:1ex">I am also
                            wondering, what this module does in detail.<br>
                            <br>
                            Regarding the source code, I can see that
                            FFT's are made in order to to<br>
                            get some sort of frequency profile.<br>
                            But the code and remarks do not give me a
                            clue how this module actually<br>
                            works.<br>
                            <br>
                            Best regards Peter<br>
                            <br>
                            <br>
                            <br>
                            On 05/26/12 15:05, BF wrote:<br>
                            &gt; Hello,<br>
                            &gt;<br>
                            &gt; I'd like to know what the "stress
                            write" from mod_stress module does. I have
                            hard time finding documentation or an
                            example about mod_stress module.<br>
                            &gt;<br>
                            &gt; Anyone?<br>
                            &gt;<br>
                            &gt; Thank you.<br>
                            &gt;<br>
                            &gt; Eric<br>
                            &gt;
_________________________________________________________________________<br>
                            &gt; Professional FreeSWITCH Consulting
                            Services:<br>
                            &gt; <a moz-do-not-send="true"
                              href="mailto:consulting@freeswitch.org"
                              target="_blank">consulting@freeswitch.org</a><br>
                            &gt; <a moz-do-not-send="true"
                              href="http://www.freeswitchsolutions.com"
                              target="_blank">http://www.freeswitchsolutions.com</a><br>
                            &gt;<br>
                            &gt; FreeSWITCH-powered IP PBX: The CudaTel
                            Communication Server<br>
                            &gt; <a moz-do-not-send="true"
                              href="http://www.cudatel.com"
                              target="_blank">http://www.cudatel.com</a><br>
                            &gt;<br>
                            &gt; Official FreeSWITCH Sites<br>
                            &gt; <a moz-do-not-send="true"
                              href="http://www.freeswitch.org"
                              target="_blank">http://www.freeswitch.org</a><br>
                            &gt; <a moz-do-not-send="true"
                              href="http://wiki.freeswitch.org"
                              target="_blank">http://wiki.freeswitch.org</a><br>
                            &gt; <a moz-do-not-send="true"
                              href="http://www.cluecon.com"
                              target="_blank">http://www.cluecon.com</a><br>
                            &gt;<br>
                            &gt; Join Us At ClueCon - Aug 7-9, 2012<br>
                            &gt;<br>
                            &gt; FreeSWITCH-users mailing list<br>
                            &gt; <a moz-do-not-send="true"
                              href="mailto:FreeSWITCH-users@lists.freeswitch.org"
                              target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
                            &gt; <a moz-do-not-send="true"
                              href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
                              target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                            &gt; UNSUBSCRIBE:<a moz-do-not-send="true"
                              href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
                              target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                            &gt; <a moz-do-not-send="true"
                              href="http://www.freeswitch.org"
                              target="_blank">http://www.freeswitch.org</a><br>
                            &gt;<br>
                            <br>
                            <br>
                            --<br>
                            With kind regards<br>
                            Peter Steinbach<br>
                            <br>
                            Telefaks Services GmbH<br>
                            mailto:<a moz-do-not-send="true"
                              href="mailto:lists" target="_blank">lists</a>
                            (att) <a moz-do-not-send="true"
                              href="http://telefaks.de" target="_blank">telefaks.de</a><br>
                            Internet: <a moz-do-not-send="true"
                              href="http://www.telefaks.de"
                              target="_blank">www.telefaks.de</a><br>
                            <br>
                            <br>
_________________________________________________________________________<br>
                            Professional FreeSWITCH Consulting Services:<br>
                            <a moz-do-not-send="true"
                              href="mailto:consulting@freeswitch.org"
                              target="_blank">consulting@freeswitch.org</a><br>
                            <a moz-do-not-send="true"
                              href="http://www.freeswitchsolutions.com"
                              target="_blank">http://www.freeswitchsolutions.com</a><br>
                            <br>
                            FreeSWITCH-powered IP PBX: The CudaTel
                            Communication Server<br>
                            <a moz-do-not-send="true"
                              href="http://www.cudatel.com"
                              target="_blank">http://www.cudatel.com</a><br>
                            <br>
                            Official FreeSWITCH Sites<br>
                            <a moz-do-not-send="true"
                              href="http://www.freeswitch.org"
                              target="_blank">http://www.freeswitch.org</a><br>
                            <a moz-do-not-send="true"
                              href="http://wiki.freeswitch.org"
                              target="_blank">http://wiki.freeswitch.org</a><br>
                            <a moz-do-not-send="true"
                              href="http://www.cluecon.com"
                              target="_blank">http://www.cluecon.com</a><br>
                            <br>
                            FreeSWITCH-users mailing list<br>
                            <a moz-do-not-send="true"
                              href="mailto:FreeSWITCH-users@lists.freeswitch.org"
                              target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
                            <a moz-do-not-send="true"
                              href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
                              target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                            UNSUBSCRIBE:<a moz-do-not-send="true"
                              href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
                              target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                            <a moz-do-not-send="true"
                              href="http://www.freeswitch.org"
                              target="_blank">http://www.freeswitch.org</a><br>
                          </blockquote>
                        </div>
                        <br>
                        <br clear="all">
                        <div><br>
                        </div>
                        -- <br>
                        Anthony Minessale II<br>
                        <br>
                        FreeSWITCH <a moz-do-not-send="true"
                          href="http://www.freeswitch.org/"
                          target="_blank">http://www.freeswitch.org/</a><br>
                        ClueCon <a moz-do-not-send="true"
                          href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
                        Twitter: <a moz-do-not-send="true"
                          href="http://twitter.com/FreeSWITCH_wire"
                          target="_blank">http://twitter.com/FreeSWITCH_wire</a><br>
                        <br>
                        AIM: anthm<br>
                        <a moz-do-not-send="true"
                          href="mailto:MSN%3Aanthony_minessale@hotmail.com"
                          target="_blank">MSN:anthony_minessale@hotmail.com</a><br>
                        GTALK/JABBER/<a moz-do-not-send="true"
                          href="mailto:PAYPAL%3Aanthony.minessale@gmail.com"
                          target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
                        IRC: <a moz-do-not-send="true"
                          href="http://irc.freenode.net" target="_blank">irc.freenode.net</a>
                        #freeswitch<br>
                        <br>
                        FreeSWITCH Developer Conference<br>
                        <a moz-do-not-send="true"
                          href="mailto:sip%3A888@conference.freeswitch.org"
                          target="_blank">sip:888@conference.freeswitch.org</a><br>
                        <a moz-do-not-send="true"
                          href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org"
                          target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>
                        pstn:<a moz-do-not-send="true"
                          href="tel:%2B19193869900" value="+19193869900"
                          target="_blank">+19193869900</a> </div>
                      <br>
                      <fieldset></fieldset>
                      <br>
                      <pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a moz-do-not-send="true" href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a moz-do-not-send="true" href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a moz-do-not-send="true" href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a moz-do-not-send="true" href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a moz-do-not-send="true" href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a moz-do-not-send="true" href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
                    </blockquote>
                    <br>
                    <br>
                    <pre cols="72">-- 
With kind regards
Peter Steinbach 

Telefaks Services GmbH
<a moz-do-not-send="true" href="mailto:lists" target="_blank">mailto:lists</a> (att) <a moz-do-not-send="true" href="http://telefaks.de" target="_blank">telefaks.de</a>
Internet: <a moz-do-not-send="true" href="http://www.telefaks.de" target="_blank">www.telefaks.de</a>

</pre>
                  </div>
                </div>
              </div>
              <br>
_________________________________________________________________________<br>
              Professional FreeSWITCH Consulting Services:<br>
              <a moz-do-not-send="true"
                href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
              <a moz-do-not-send="true"
                href="http://www.freeswitchsolutions.com"
                target="_blank">http://www.freeswitchsolutions.com</a><br>
              <br>
              FreeSWITCH-powered IP PBX: The CudaTel Communication
              Server<br>
              <a moz-do-not-send="true" href="http://www.cudatel.com"
                target="_blank">http://www.cudatel.com</a><br>
              <br>
              Official FreeSWITCH Sites<br>
              <a moz-do-not-send="true" href="http://www.freeswitch.org"
                target="_blank">http://www.freeswitch.org</a><br>
              <a moz-do-not-send="true"
                href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
              <a moz-do-not-send="true" href="http://www.cluecon.com"
                target="_blank">http://www.cluecon.com</a><br>
              <br>
              FreeSWITCH-users mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:FreeSWITCH-users@lists.freeswitch.org"
                target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
              <a moz-do-not-send="true"
                href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
                target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
              UNSUBSCRIBE:<a moz-do-not-send="true"
                href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
                target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
              <a moz-do-not-send="true" href="http://www.freeswitch.org"
                target="_blank">http://www.freeswitch.org</a><br>
              <br>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
With kind regards
Peter Steinbach 

Telefaks Services GmbH
<a class="moz-txt-link-freetext" href="mailto:lists">mailto:lists</a> (att) telefaks.de
Internet: <a class="moz-txt-link-abbreviated" href="http://www.telefaks.de">www.telefaks.de</a>

</pre>
  </body>
</html>