<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=koi8-r" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19046">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Hello all.</FONT></DIV>
<DIV><FONT size=2 face=Arial>In example for "play_and_get_digits"
dialplan app I see next extension. <A
href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_play_and_get_digits"><FONT
size=3
face="Times New Roman">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_play_and_get_digits</FONT></A></FONT></DIV><SPAN
style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium 'Times New Roman'; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"
class=Apple-style-span><SPAN
style="LINE-HEIGHT: 19px; FONT-FAMILY: sans-serif; FONT-SIZE: 13px"
class=Apple-style-span><PRE style="BORDER-BOTTOM: rgb(47,111,171) 1px dashed; BORDER-LEFT: rgb(47,111,171) 1px dashed; PADDING-BOTTOM: 1em; LINE-HEIGHT: 1.1em; BACKGROUND-COLOR: rgb(249,249,249); PADDING-LEFT: 1em; PADDING-RIGHT: 1em; COLOR: black; BORDER-TOP: rgb(47,111,171) 1px dashed; BORDER-RIGHT: rgb(47,111,171) 1px dashed; PADDING-TOP: 1em"><extension name="play_and_get_digits with say">
<condition field="destination_number" expression="^(6500)$">
<action application="play_and_get_digits" data="1 1 1 3000 # say:'press one for technicial support' silence_stream://250 res \d+" />
</condition>
</extension></PRE>
<DIV><FONT size=2>This extension say somethin and get user DTMF.</FONT></DIV>
<DIV><FONT size=2>I need say digits and numbers on various (EN and ES)
languages.</FONT></DIV>
<DIV><FONT size=2>
<DIV><FONT size=2><SPAN lang=EN>It's possible to specify these vars for "say"
dialplan application <A
href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_say">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_say</A>.
And it works correctly.</SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN lang=EN></SPAN></FONT> </DIV></FONT></DIV>
<DIV><FONT size=2>Could you tell me How can I set language and <SPAN
lang=EN>say_type for tts_engine in "play_and_get_digits" app
case?</SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN lang=EN></SPAN></FONT> </DIV>
<DIV><FONT size=2><SPAN lang=EN>I try to use next extension, but it don't work
(FS take 'es NUMBER 1234567' as <text_to_say> and say all this text
on English):</SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN lang=EN> <extension
name="read_extension3"><BR>
<condition field="destination_number"
expression="^7890$"><BR>
<action
application="answer"/><BR>
<action application="set"
data="tts_engine=flite"/><BR>
<action application="set" data="tts_voice=kal"/><BR> <action
application="play_and_get_digits" data="1 1 1 3000 # say:'es NUMBER 1234567'
/usr/local/freeswitch/sounds/starpound/silence.wav read_result \d+"
/><BR>
<action application="event"
data="Event-App-Type=READ-EXECUTED,Read-Result=${read_result}"/><BR>
<action application="log"
data="Read-Result=${read_result}"/><BR>
<action application="park"/></SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN lang=EN>
</condition><BR> </extension></SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN lang=EN></SPAN></FONT> </DIV>
<DIV><FONT size=2><SPAN lang=EN>Also I try to set vars:</SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN
lang=EN>
<action application="set"
data="tts_engine=cepstral"/><BR>
<action application="set" data="tts_voice=maria"/>
<!-- ES lang --><BR>and get failed
result:</SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN lang=EN>EXECUTE <A
href="mailto:sofia/internal/1007@172.26.200.250:5060">sofia/internal/1007@172.26.200.250:5060</A>
play_and_get_digits(1 1 1 3000 # say:'1234567'
/usr/local/freeswitch/sounds/starpound/silence.wav read_result
\d+)<BR>2011-06-05 22:58:33.661014 [ERR] switch_core_speech.c:61 Invalid speech
module [cepstral]!<BR>2011-06-05 22:58:33.661014 [ERR]
switch_ivr_play_say.c:2361 Invalid TTS
module!<BR></SPAN></FONT></DIV></SPAN></SPAN></BODY></HTML>