[Freeswitch-users] PLAY_AND_GET_DIGITS dialplann application: set <lang> and <say_type> to SAY subcommand

Kozak Vladimir vkozak at abisoft.spb.ru
Wed Jun 1 18:50:06 MSD 2011


Hello all.
In example for "play_and_get_digits" dialplan app I see next extension. http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_play_and_get_digits
<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>This extension say somethin and get user DTMF.
I need say digits and numbers on various (EN and ES) languages.
It's possible to specify these vars for "say" dialplan application http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_say. And it works correctly.

Could you tell me How can I set language and say_type for tts_engine in "play_and_get_digits" app case?

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):
 <extension name="read_extension3">
        <condition field="destination_number" expression="^7890$">
            <action application="answer"/>
                <action application="set" data="tts_engine=flite"/>
                <action application="set" data="tts_voice=kal"/>
 <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+" />
            <action application="event" data="Event-App-Type=READ-EXECUTED,Read-Result=${read_result}"/>
            <action application="log" data="Read-Result=${read_result}"/>
            <action application="park"/>
        </condition>
    </extension>

Also I try to set vars:
                <action application="set" data="tts_engine=cepstral"/>
                <action application="set" data="tts_voice=maria"/>        <!-- ES lang -->
and get failed result:
EXECUTE sofia/internal/1007 at 172.26.200.250:5060 play_and_get_digits(1 1 1 3000 # say:'1234567' /usr/local/freeswitch/sounds/starpound/silence.wav read_result \d+)
2011-06-05 22:58:33.661014 [ERR] switch_core_speech.c:61 Invalid speech module [cepstral]!
2011-06-05 22:58:33.661014 [ERR] switch_ivr_play_say.c:2361 Invalid TTS module!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110601/493c932b/attachment.html 


More information about the FreeSWITCH-users mailing list