[Freeswitch-users] Recording with a beep please
Don Hawkins
hawkins at hawkinsegroup.com
Wed Aug 3 09:57:51 MSD 2016
Jurijs,
Thank you for your time, problem resolved! I also had to change the silence
after the tone stream "15000" to "1000". Here is the new XML for reference
if anyone has this issue in the future.
<document type="text/freeswitch-httapi">
<work>
<speak name="speak" loops="0" engine="flite" voice="kal" text="Please leave
a message after the beep." language="en"></speak>
<execute application="playback"
data="tone_stream://%(100,1000,800);loops=0"/>
<execute action="redacted"
application="record"
data="/usr/share/freeswitch/htdocs/recordings/rd5s4nqq-898958.wav 25 20"
data="RECORD_STEREO=true"
data="playback_terminators=*">
</execute>
</work>
</document>
On Wed, Aug 3, 2016 at 12:44 AM, Jurijs Ivolga <jurijs.ivolga at gmail.com>
wrote:
> Hi,
>
> You have loops=-1 what infinitely loops you tone, that why you need to
> press a button to terminate it:
>
> "Adds a repeating (loop) 800Hz tone with a duration of 100ms and a 15
> second intervening silence to a session:"
>
> Check this link for more details:
>
> https://freeswitch.org/confluence/display/FREESWITCH/Tone_stream
>
> With kind regards,
>
> Jurijs
>
> On Wed, Aug 3, 2016 at 7:15 AM, Don Hawkins <hawkins at hawkinsegroup.com>
> wrote:
>
>> Using httapi, the code below plays the beep BUT will not begin the
>> recording until I press the terminator key, * in this case. How can I make
>> it start recording right away and have * terminate the recording?
>>
>> <document type="text/freeswitch-httapi">
>> <work>
>> <speak name="speak" loop="1" engine="flite" voice="kal" text="Please
>> leave a message after the beep." language="en"></speak>
>> <execute application="playback"
>> data="tone_stream://%(100,15000,800);loops=-1"/>
>> <execute action="redacted"
>> application="record"
>> data="/usr/share/freeswitch/htdocs/recordings/z0jnu8h6-898958.wav 25 20"
>> data="RECORD_STEREO=true"
>> data="playback_terminators=*">
>> </execute>
>> </work>
>> </document>
>>
>>
>> _________________________________________________________________________
>> 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
>
--
Sincerely,
Don Hawkins
CEO
Hawkins Enterprise Group LLC
http://hawkinsegroup.com
Zello PTT <http://zello.com>: push2don
P: 469-214-5044
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160803/ff9825d4/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list