当前位置: 代码迷 >> 综合 >> freeswitch服务器问题处理
  详细解决方案

freeswitch服务器问题处理

热度:59   发布时间:2024-02-01 17:38:48.0

添加lib库目录:

vim /etc/ld.so.conf

/root/mod_asr-master/NlsSdkCpp2.0/lib/linux

 

 

拨号命令:

originate user/1003 'start_asr:项目ID ID KEY aleg 300 null,park' inline

 

事件订阅:

/event Custom asr_start asr_update asr_stop

 

语音合成:(文本文件与生成音频文件都在/root/mod_tts)

start_tts 'uuid' '播报文字'

 

播放声音:(aleg bleg 改变播放声音方向)(改变UUID)

uuid_broadcast 45a8bc4e-afe6-4c01-bb03-c4db5dc4f390 /root/syAudio.wav aleg

 

打断播放:

uuid_break 97dc97d4-e5d0-4ff3-a16a-f0aa541672b8

 

Freeswitch无声音:

问题的解决:在/usr/freeswitch/conf/sip_profiles/internal.xml 中修改

<param name="ext-rtp-ip" value="60.205.**.**"/>

<param name="ext-sip-ip" value="60.205.**.**"/>

把这改成自己的外网ip 重启freeswitch就可以解决

 

Fs无法启动:

/etc/freeswitch/autoload_configs/event_socket.conf.xml

    <param name="listen-ip" value="0.0.0.0"/>