<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    I'm having trouble figuring out how to record stuff into a file.&nbsp; I
    know how to say stuff to the caller, and I know how to record the
    callers voice, but how would I say stuff directly into a file,
    instead of to the caller on the line?&nbsp; And then, now that I think
    about it, this can't possibly happen in real time while interacting
    with the caller, because it takes time to read some digits, and if I
    want the read digits to go into a file, and not be spoken to the
    caller on the line, this probably has to happen in another thread....<br>
    <br>
    I'm writing this interaction with lua scripting.<br>
    <br>
    On 7/11/2011 11:44 AM, Michael Collins wrote:
    <blockquote
cite="mid:CAKzWOxXgNuA0aCChzN5YisgEbL34wmrio11uUxf2ZxN7SVxG9Q@mail.gmail.com"
      type="cite">You can post-process this. Just record the stuff you
      want into a specific file name, put that file name into a chan
      var, and then use a hangup-hook or cron job to do the
      post-processing.&nbsp;
      <div>-MC<br>
        <br>
        <div class="gmail_quote">
          On Mon, Jul 11, 2011 at 9:33 AM, Wes <span dir="ltr">&lt;<a
              moz-do-not-send="true" href="mailto:wes-fs@499x.com">wes-fs@499x.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            padding-left: 1ex;">
            Not sure how to phrase this correctly, which is why I'm
            having trouble<br>
            searching for help on the internet.<br>
            <br>
            I'd like to "speak" some audio into the recording that I am
            making of<br>
            the user's voice.<br>
            <br>
            For example, say I have the caller press some digits and
            then detect the<br>
            digits that have been pressed, then, I can easily speak
            those digits<br>
            back to them for confirmation, but what I'd really like to
            do is begin<br>
            recording the call, and then speak those digits, or any
            other<br>
            introductory message into the recording before they start
            speaking their<br>
            message.<br>
            <br>
            Say they type in the digits 123, then I'd read into the
            recording: &nbsp;"The<br>
            following is the dictation for user number 123, taken on
            July 3, 2011",<br>
            and then the person would start speaking and the recording
            would continue.<br>
            <br>
            Perhaps this would have to be done by some sort of post
            processing,<br>
            where I append the introductory message onto the user's
            recording using<br>
            sox, but I'd still like to use the voice system in
            freeswitch because it<br>
            is good at reading numbers, speaking time, etc.<br>
            <br>
            Thanks.<br>
            <br>
            _______________________________________________<br>
            Join us at ClueCon 2011, Aug 9-11, Chicago<br>
            <a moz-do-not-send="true" href="http://www.cluecon.com"
              target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
            <br>
            FreeSWITCH-users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:FreeSWITCH-users@lists.freeswitch.org">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>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Join us at ClueCon 2011, Aug 9-11, Chicago
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a> 877-7-4ACLUE

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>
  </body>
</html>