lua and playAndGetDigits with tts
FreeSWITCH Version 1.3.13b+git~20130208T015804Z~7989798ec4 (git 7989798 2013-02-08 01:58:04Z) Not sure if this is a bug: in lua: session:set_tts_parms("flite", "kal") acct_num = session:playAndGetDigits(1, 5, 3, 3000, "#", "say:Please enter your account number now, followed by the pound key.", "say:Your entry was incorrect.", "\\d+") I get the following in the log and the tts does not work: 2013-02-21 21:15:20.736283 [ERR] switch_ivr_play_say.c:1207 Invalid Args The only way to get it to work is to call the script from an ivr with tts-engine and tts-voice set, or call after the dialplan like so: <action application="set" data="tts_engine=flite"/> <action application="set" data="tts_voice=kal"/> <action application="lua" data="shell_demo.lua"/> Why does session:set_tts_parms("flite", "kal") not function as expected? Interestingly I have no issues with session:speak in the same use case. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/lua-and-playAndGetDigits-with-... Sent from the freeswitch-users mailing list archive at Nabble.com.
Found that this will fix the issue. Not sure why the set_tts_parms does not. session:setVariable("tts_engine", "flite"); session:setVariable("tts_voice", "kal"); -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/lua-and-playAndGetDigits-with-... Sent from the freeswitch-users mailing list archive at Nabble.com.
Try setparAms -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Wilsonbrett85 Sent: Saturday, February 23, 2013 11:41 To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] lua and playAndGetDigits with tts Found that this will fix the issue. Not sure why the set_tts_parms does not. session:setVariable("tts_engine", "flite"); session:setVariable("tts_voice", "kal"); -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/lua-and-playAndGetDigits-with- tts-tp7587902p7587903.html Sent from the freeswitch-users mailing list archive at Nabble.com. _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
Then I get this: 2013-02-22 04:35:48.536287 [ERR] mod_lua.cpp:198 /usr/local/freeswitch/scripts/shell_demo.lua:48: attempt to call method 'set_tts_params' (a nil value) stack traceback: /usr/local/freeswitch/scripts/shell_demo.lua:48: in main chunk -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/lua-and-playAndGetDigits-with-... Sent from the freeswitch-users mailing list archive at Nabble.com.
participants (2)
-
grmt
-
Wilsonbrett85