[Freeswitch-users] How to record User Voice and listen for the DTMF simultaneously

Deepika Yadav deepikay at iiitd.ac.in
Mon Sep 18 07:10:55 UTC 2017


Playandgetdigits() - plays a file and gets digits at the same time. However
I need to initiate recording of the user voice and get the digits for
quitting



On Mon, Sep 18, 2017 at 12:02 PM, Giovanni Maruzzelli <gmaruzz at gmail.com>
wrote:

> Playandgetdigits()
>
> sent from mobile
> cell: +39 347 266 56 18
> Giovanni Maruzzelli
> OpenTelecom.IT
>
> On Sep 17, 2017 11:28, "Deepika Yadav" <deepikay at iiitd.ac.in> wrote:
>
>> Hi,
>>
>> I want to give users an option to record their voice by presssing some
>> digit in the IVR menu through my python script. I use the code as follows:
>>
>> session.recordFile(filename, 120, 500, 3)
>>
>> However, this code will block for 2 minutes and then proceed. In case a
>> user has little to say and after 1 minute wants to stop the recording, how
>> I can do that. Is there any function similar to "session.playAndGetDigits"
>> to also hear for DTMFs at the same time?
>>
>>
>> --
>> Regards,
>> Deepika
>> https://deepikay.wixsite.com/deepika
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> 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
>>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> 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
>



-- 
Regards,
Deepika
https://deepikay.wixsite.com/deepika
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170918/bace32a4/attachment.html>


More information about the FreeSWITCH-users mailing list