Generating a BEEP tone
I want to be able to generate a beep tone as part of an announcement in a custom IVR that I am building. I can see where a beep is defined in vars.xml, but I am unsure as how I would get it into my announcement. I can also see that in several places a file beep.wav is invoked, but no such file exists on my system How do I use the beep variable? Where should the beep.wav file be located, and how/where would I get it from? Thanks for your time. William.
Hi William, You can use "tone stream" to insert beep into your script*. For example this will play 1000Hz tone for 1.85s followed by 1.75s of silence: <action application="playback" data="tone_stream://L=1;%(1850,1750,1000)" /> Please read https://freeswitch.org/confluence/display/FREESWITCH/Tone_stream for details. * - You can use mod_avmd to detect such BEEPs. cheers, Piotr
Thank you very Much. Most helpful, and solves my problem very neatly. On 2016-08-29 09:10 AM, Piotr Gregor wrote:
Hi William,
You can use "tone stream" to insert beep into your script*. For example this will play 1000Hz tone for 1.85s followed by 1.75s of silence:
<action application="playback" data="tone_stream://L=1;%(1850,1750,1000)" />
Please read
https://freeswitch.org/confluence/display/FREESWITCH/Tone_stream
for details.
* - You can use mod_avmd to detect such BEEPs.
cheers, Piotr
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
Piotr Gregor
-
William Colls