问题描述
拨打用户手机,机器人放音,实际接听效果没问题,但是录音里面用户说话有延迟
解决方案
关闭录音缓存,在拨号方案中将enable_file_write_buffering设置为false。
如下:
<include>
<extension name="asrbot_extension">
<condition field="destination_number" expression="^mrcpbot$">
<action application="set" data="execute_on_answer=start_asr xx yy zz"/>
<action application="set" data="enable_file_write_buffering=false"/>
<action application="record_session" data="/usr/local/freeswitch/recordings/${uuid}.wav"/>
<action application="park"/>
</condition>
</extension>
</include>