http://wiki.freeswitch.org/wiki/IVR_Menu#Options
使用sound_prefix變量可以重新定義聲音文件的具體路徑。
有兩個方法可以修改這個變量:
方法一:
在/usr/local/freeswitch/conf/var.xml文件中 <X-PRE-PROCESS cmd="set" data="sound_prefix=$${sounds_dir}/en/us/callie"/>,
在這裏修改能夠修改大部分的聲音文件位置
方法二:
在dialplan中針對一個channel進行該表,如
/usr/local/freeswitch/conf/dialplan/default.xml中在某extension中添加
<action application="set" data="sound_prefix=$${sounds_dir}"/>,就可以指定當前channel使用聲音文件的默認存放路徑。
在默認的demo_ivr.xml文件中,發現使用了phrase(短語)來配置播放的聲音文件。
通過短語,可以屏蔽不同語言的差異性,使用相同的語法來播放不同語言的日期、時間等聲音。並可以同TTS相結合使用。
greet-long="phrase:demo_ivr_main_menu"