[Freeswitch-users] play wav files, or speak prompts, into recording?
Michael Collins
msc at freeswitch.org
Mon Jul 11 21:55:49 MSD 2011
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.
-MC
On Mon, Jul 11, 2011 at 10:43 AM, Wes <wes-fs at 499x.com> wrote:
> **
> 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....
>
> I'm writing this interaction with lua scripting.
>
>
> On 7/11/2011 11:44 AM, Michael Collins wrote:
>
> 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.
> -MC
>
> On Mon, Jul 11, 2011 at 9:33 AM, Wes <wes-fs at 499x.com> wrote:
>
>> Not sure how to phrase this correctly, which is why I'm having trouble
>> searching for help on the internet.
>>
>> I'd like to "speak" some audio into the recording that I am making of
>> the user's voice.
>>
>> For example, say I have the caller press some digits and then detect the
>> digits that have been pressed, then, I can easily speak those digits
>> back to them for confirmation, but what I'd really like to do is begin
>> recording the call, and then speak those digits, or any other
>> introductory message into the recording before they start speaking their
>> message.
>>
>> Say they type in the digits 123, then I'd read into the recording: "The
>> following is the dictation for user number 123, taken on July 3, 2011",
>> and then the person would start speaking and the recording would continue.
>>
>> Perhaps this would have to be done by some sort of post processing,
>> where I append the introductory message onto the user's recording using
>> sox, but I'd still like to use the voice system in freeswitch because it
>> is good at reading numbers, speaking time, etc.
>>
>> Thanks.
>>
>> _______________________________________________
>> Join us at ClueCon 2011, Aug 9-11, Chicago
>> http://www.cluecon.com 877-7-4ACLUE
>>
>> 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
>>
>
>
> _______________________________________________
> Join us at ClueCon 2011, Aug 9-11, Chicagohttp://www.cluecon.com 877-7-4ACLUE
>
> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org
>
>
> _______________________________________________
> Join us at ClueCon 2011, Aug 9-11, Chicago
> http://www.cluecon.com 877-7-4ACLUE
>
> 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/20110711/24a7a7ab/attachment.html
More information about the FreeSWITCH-users
mailing list