[Freeswitch-users] lua and playAndGetDigits with tts
Wilsonbrett85
brett at launch3.net
Sat Feb 23 13:28:50 MSK 2013
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-tts-tp7587902.html
Sent from the freeswitch-users mailing list archive at Nabble.com.
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list