Hi guys, Trying to build a DTMF test using flite TTS. So far I have this: session:setVariable("tts_engine", "flite") session:setVariable("tts_voice", "stm") digits = session:playAndGetDigits(2, 30, 3, 5000, "#", "say:Please enter some digits, followed by the hash key.", "say:Sorry, I didn't catch that. Please try again.", "\\d+") session:execute("speak", "flite|stm|" .. digits) I keep getting the following error and can't work out why: 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) stack traceback: /usr/share/freeswitch/scripts/dtmf_test.lua:2: in main chunk It's mostly something stupid I'm doing, out of everything I'm good at lua isn't one of them! Does anyone have any ideas what I'm doing wrong? Kind regards, -- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director 03303 880 960 andrew@cassidyweb.co.uk <andrew@cassidywebservices.co.uk> www.cassidyweb.co.uk <http://www.cassidywebservices.co.uk>
what is the exact complete contents of those 2 lua scripts?
On Dec 13, 2016, at 2:15 PM, Andrew Cassidy <andrew@cassidywebservices.co.uk> wrote:
Hi guys,
Trying to build a DTMF test using flite TTS. So far I have this:
session:setVariable("tts_engine", "flite") session:setVariable("tts_voice", "stm") digits = session:playAndGetDigits(2, 30, 3, 5000, "#", "say:Please enter some digits, followed by the hash key.", "say:Sorry, I didn't catch that. Please try again.", "\\d+") session:execute("speak", "flite|stm|" .. digits)
I keep getting the following error and can't work out why:
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) stack traceback: /usr/share/freeswitch/scripts/dtmf_test.lua:2: in main chunk
It's mostly something stupid I'm doing, out of everything I'm good at lua isn't one of them!
Does anyone have any ideas what I'm doing wrong?
Kind regards,
-- Andrew Cassidy BSc (Hons) MBCS SSCA Managing Director
03303 880 960 andrew@cassidyweb.co.uk <mailto:andrew@cassidywebservices.co.uk> www.cassidyweb.co.uk <http://www.cassidywebservices.co.uk/>_________________________________________________________________________ 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
Hi Mike, Thanks for responding but I've resolved the issue by not being a moron, the code I quoted works just fine. The code that was throwing the error is session = freeswitch.Session("sofia/external/" .. argv[1] .. "@london.out.simwood.com"); Which has a superfluous semi-colon on the end On 13 December 2016 at 19:51, Michael Jerris <mike@jerris.com> wrote:
what is the exact complete contents of those 2 lua scripts?
On Dec 13, 2016, at 2:15 PM, Andrew Cassidy <andrew@cassidywebservices.co. uk> wrote:
Hi guys,
Trying to build a DTMF test using flite TTS. So far I have this:
session:setVariable("tts_engine", "flite") session:setVariable("tts_voice", "stm") digits = session:playAndGetDigits(2, 30, 3, 5000, "#", "say:Please enter some digits, followed by the hash key.", "say:Sorry, I didn't catch that. Please try again.", "\\d+") session:execute("speak", "flite|stm|" .. digits)
I keep getting the following error and can't work out why:
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) stack traceback: /usr/share/freeswitch/scripts/dtmf_test.lua:2: in main chunk
It's mostly something stupid I'm doing, out of everything I'm good at lua isn't one of them!
Does anyone have any ideas what I'm doing wrong?
Kind regards,
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director
03303 880 960 <0330%20388%200960> andrew@cassidyweb.co.uk <andrew@cassidywebservices.co.uk> www.cassidyweb.co.uk <http://www.cassidywebservices.co.uk/> _________________________________________________________________________ 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
_________________________________________________________________________ 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
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director 03303 880 960 andrew@cassidyweb.co.uk <andrew@cassidywebservices.co.uk> www.cassidyweb.co.uk <http://www.cassidywebservices.co.uk>
participants (2)
-
Andrew Cassidy
-
Michael Jerris