<div dir="ltr">Hi guys,<div><br></div><div>Trying to build a DTMF test using flite TTS. So far I have this:</div><div><br></div><div><pre style="background-color:rgb(20,20,20);color:rgb(248,248,248);font-family:"dejavu sans mono";font-size:9pt"><span style="color:rgb(191,96,96)">session</span>:<span style="color:rgb(163,157,43)">setVariable</span>(<span style="color:rgb(143,157,106)">"tts_engine"</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(143,157,106)">"flite"</span>)<br><span style="background-color:rgb(60,60,87)">session</span>:<span style="color:rgb(163,157,43)">setVariable</span>(<span style="color:rgb(143,157,106)">"tts_voice"</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(143,157,106)">"stm"</span>)<br><span style="color:rgb(191,96,96)">digits </span><span style="color:rgb(205,168,105)">= </span><span style="color:rgb(191,96,96)">session</span>:<span style="color:rgb(163,157,43)">playAndGetDigits</span>(<span style="color:rgb(207,106,76)">2</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(207,106,76)">30</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(207,106,76)">3</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(207,106,76)">5000</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(143,157,106)">"#"</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(143,157,106)">"say:Please enter some digits, followed by the hash key."</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(143,157,106)">"say:Sorry, I didn't catch that. Please try again."</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(143,157,106)">"\\d+"</span>)<br><span style="color:rgb(191,96,96)">session</span>:<span style="color:rgb(163,157,43)">execute</span>(<span style="color:rgb(143,157,106)">"speak"</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(143,157,106)">"flite|stm|" </span><span style="color:rgb(205,168,105)">.. </span><span style="color:rgb(191,96,96)">digits</span>)</pre></div><div><br></div><div>I keep getting the following error and can't work out why:</div><div><br></div><div><div>2016-12-13 19:16:10.377932 [ERR] mod_lua.cpp:203 /usr/share/freeswitch/scripts/dtmf_test.lua:9: attempt to concatenate field '?' (a nil value)</div><div>stack traceback:</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>/usr/share/freeswitch/scripts/dtmf_test.lua:2: in main chunk</div></div><div><br></div><div>It's mostly something stupid I'm doing, out of everything I'm good at lua isn't one of them!</div><div><br></div><div>Does anyone have any ideas what I'm doing wrong?</div><div><br></div><div>Kind regards,<br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><b>Andrew Cassidy BSc (Hons) MBCS SSCA</b><div>Managing Director<div><div><img src="https://docs.google.com/uc?export=download&id=0B48A-71LkjxcRUlpZlNFZmY5Q2s&revid=0B48A-71LkjxcaWJXYm5XZjdGY1czZFF1citBazFCVXV6R0ZnPQ"><br></div><div><div>03303 880 960 <a href="mailto:andrew@cassidywebservices.co.uk" style="font-size:12.8px" target="_blank">andrew@cassidyweb.co.uk</a> <a href="http://www.cassidywebservices.co.uk" style="font-size:12.8px" target="_blank">www.cassidyweb.co.uk</a></div></div></div></div></div></div></div></div></div>
</div></div>