Well, if you don't need the "stuff" to be voiced to the caller then yes, you can just do it in another thread. I suppose there are several ways of doing it, but if you just want FS to do all the work for you then I would create a simple dialplan extension that you can call via originate and then just play silence_stream://10000 on the b leg while doing the recording, say app, etc. on the a leg.<div>
<br></div><div>-MC<br><br><div class="gmail_quote">On Mon, Jul 11, 2011 at 10:43 AM, Wes <span dir="ltr"><<a href="mailto:wes-fs@499x.com">wes-fs@499x.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<u></u>
<div bgcolor="#ffffff" text="#000000">
I'm having trouble figuring out how to record stuff into a file. 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? 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.<div><div></div><div class="h5"><br>
<br>
On 7/11/2011 11:44 AM, Michael Collins wrote:
<blockquote 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.
<div>-MC<br>
<br>
<div class="gmail_quote">
On Mon, Jul 11, 2011 at 9:33 AM, Wes <span dir="ltr"><<a href="mailto:wes-fs@499x.com" target="_blank">wes-fs@499x.com</a>></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: "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 href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote>
</div>
<br>
</div>
<pre><fieldset></fieldset>
_______________________________________________
Join us at ClueCon 2011, Aug 9-11, Chicago
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE
FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
</blockquote>
</div></div></div>
<br>_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>