<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I don’t know if this is any value to you but I play sounds from LUA and I DO need the rate in the file path:<div class=""><div class="">&nbsp;local rr &nbsp; = session:getVariable("read_rate") &nbsp; &nbsp;-- add rate to path since real full path is also needed in some functions</div><div class="">if rr == nil then</div><div class="">&nbsp; &nbsp; &nbsp;rr = "8000" &nbsp; &nbsp;-- happens for internal testing calls</div><div class="">&nbsp; &nbsp;end</div><div class="">&nbsp; &nbsp;rr = "8000" &nbsp; &nbsp;-- force to 8000 since that is all we have for sounds, started problem 5/21/14</div><div class="">&nbsp; &nbsp;em1rp &nbsp; = sound_path.."/"..rr.."/em1.wav"</div><div class="">&nbsp; &nbsp;em2rp &nbsp; = sound_path.."/"..rr.."/em2.wav"</div><div class=""><br class=""></div><div class="">Mario</div><div class=""><br class=""></div><div class=""><br class=""><div class=""><div><blockquote type="cite" class=""><div class="">On Aug 8, 2016, at 2:05 PM, Don Hawkins &lt;<a href="mailto:hawkins@hawkinsegroup.com" class="">hawkins@hawkinsegroup.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><p dir="ltr" class="">It should work. Do you have the console log around the time it's trying to play the file?</p><p dir="ltr" class="">Sincerely,<br class="">
Don Hawkins</p><p dir="ltr" class="">Sent from my NationPCS® Nexus 6.</p>
<div class="gmail_extra"><br class=""><div class="gmail_quote">On Aug 8, 2016 8:47 AM, "Dave Horton" &lt;<a href="mailto:daveh@beachdognet.com" class="">daveh@beachdognet.com</a>&gt; wrote:<br type="attribution" class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto" class=""><div class="">Ok I am not playing MP3 files just the files in the sounds directory &nbsp; Should that still work and why is mod shout necessary? I am using the standard play and get digits, playback, play and detect speech apps etc<br class=""><br class="">Sent from my iPhone</div><div class=""><br class="">On Aug 7, 2016, at 11:15 PM, Don Hawkins &lt;<a href="mailto:hawkins@hawkinsegroup.com" target="_blank" class="">hawkins@hawkinsegroup.com</a>&gt; wrote:<br class=""><br class=""></div><blockquote type="cite" class=""><div class=""><p dir="ltr" class="">Simple answer is no, you don't have to specific the sample rate. If your doing mp3 make sure mod_shout is loaded. I have plenty of code working properly with no sample rate specified, but all the wav files are 8k.</p><p dir="ltr" class="">Sincerely,<br class="">
Don Hawkins</p><p dir="ltr" class="">Sent from my NationPCS® Nexus 6.</p>
<div class="gmail_extra"><br class=""><div class="gmail_quote">On Aug 7, 2016 10:50 PM, "Dave Horton" &lt;<a href="mailto:daveh@beachdognet.com" target="_blank" class="">daveh@beachdognet.com</a>&gt; wrote:<br type="attribution" class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">When using the playback application (or play_and_get_digits etc) do I need to specify the full path to the file under the base sounds directory, including the sample rate (e.g. 8000).<br class="">
<br class="">
It’s a bit cumbersome to have to put the sample rate into the file string since that is dynamically determined at call set up, and I _thought_ that freeswitch<br class="">
had the ability to automatically factor that in when locating the file.&nbsp; However, I can’t find examples that do that — am I wrong, and must I somehow<br class="">
concoct a file string that will be different per call if different codecs are chosen?<br class="">
<br class="">
<br class="">
<br class="">
______________________________<wbr class="">______________________________<wbr class="">_____________<br class="">
Professional FreeSWITCH Consulting Services:<br class="">
<a href="mailto:consulting@freeswitch.org" target="_blank" class="">consulting@freeswitch.org</a><br class="">
<a href="http://www.freeswitchsolutions.com/" rel="noreferrer" target="_blank" class="">http://www.freeswitchsolutions<wbr class="">.com</a><br class="">
<br class="">
Official FreeSWITCH Sites<br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class="">
<a href="http://confluence.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://confluence.freeswitch.o<wbr class="">rg</a><br class="">
<a href="http://www.cluecon.com/" rel="noreferrer" target="_blank" class="">http://www.cluecon.com</a><br class="">
<br class="">
FreeSWITCH-users mailing list<br class="">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" class="">FreeSWITCH-users@lists.freeswi<wbr class="">tch.org</a><br class="">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/ma<wbr class="">ilman/listinfo/freeswitch-user<wbr class="">s</a><br class="">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.frees<wbr class="">witch.org/mailman/options/<wbr class="">freeswitch-users</a><br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a></blockquote></div></div>
</div></blockquote><blockquote type="cite" class=""><div class=""><span class="">______________________________<wbr class="">______________________________<wbr class="">_____________</span><br class=""><span class="">Professional FreeSWITCH Consulting Services: </span><br class=""><span class=""><a href="mailto:consulting@freeswitch.org" target="_blank" class="">consulting@freeswitch.org</a></span><br class=""><span class=""><a href="http://www.freeswitchsolutions.com/" target="_blank" class="">http://www.<wbr class="">freeswitchsolutions.com</a></span><br class=""><span class=""></span><br class=""><span class="">Official FreeSWITCH Sites</span><br class=""><span class=""><a href="http://www.freeswitch.org/" target="_blank" class="">http://www.freeswitch.org</a></span><br class=""><span class=""><a href="http://confluence.freeswitch.org/" target="_blank" class="">http://confluence.freeswitch.<wbr class="">org</a></span><br class=""><span class=""><a href="http://www.cluecon.com/" target="_blank" class="">http://www.cluecon.com</a></span><br class=""><span class=""></span><br class=""><span class="">FreeSWITCH-users mailing list</span><br class=""><span class=""><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" class="">FreeSWITCH-users@lists.<wbr class="">freeswitch.org</a></span><br class=""><span class=""><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank" class="">http://lists.freeswitch.org/<wbr class="">mailman/listinfo/freeswitch-<wbr class="">users</a></span><br class=""><span class="">UNSUBSCRIBE:http://<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" class="">lists.<wbr class="">freeswitch.org/mailman/<wbr class="">options/freeswitch-users</a></span><br class=""><span class=""><a href="http://www.freeswitch.org/" target="_blank" class="">http://www.freeswitch.org</a></span></div></blockquote></div><br class="">______________________________<wbr class="">______________________________<wbr class="">_____________<br class="">
Professional FreeSWITCH Consulting Services:<br class="">
<a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">
<a href="http://www.freeswitchsolutions.com/" rel="noreferrer" target="_blank" class="">http://www.<wbr class="">freeswitchsolutions.com</a><br class="">
<br class="">
Official FreeSWITCH Sites<br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class="">
<a href="http://confluence.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://confluence.freeswitch.<wbr class="">org</a><br class="">
<a href="http://www.cluecon.com/" rel="noreferrer" target="_blank" class="">http://www.cluecon.com</a><br class="">
<br class="">
FreeSWITCH-users mailing list<br class="">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="">FreeSWITCH-users@lists.<wbr class="">freeswitch.org</a><br class="">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/<wbr class="">mailman/listinfo/freeswitch-<wbr class="">users</a><br class="">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.<wbr class="">freeswitch.org/mailman/<wbr class="">options/freeswitch-users</a><br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class=""></blockquote></div></div>
_________________________________________________________________________<br class="">Professional FreeSWITCH Consulting Services: <br class=""><a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">http://www.freeswitchsolutions.com<br class=""><br class="">Official FreeSWITCH Sites<br class="">http://www.freeswitch.org<br class="">http://confluence.freeswitch.org<br class="">http://www.cluecon.com<br class=""><br class="">FreeSWITCH-users mailing list<br class="">FreeSWITCH-users@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">http://www.freeswitch.org</div></blockquote></div><br class=""></div></div></div></body></html>