问题描述

拨打用户手机,机器人放音,实际接听效果没问题,但是录音里面用户说话有延迟

解决方案

关闭录音缓存,在拨号方案中将enable_file_write_buffering设置为false。
如下:

  1. <include>
  2. <extension name="asrbot_extension">
  3. <condition field="destination_number" expression="^mrcpbot$">
  4. <action application="set" data="execute_on_answer=start_asr xx yy zz"/>
  5. <action application="set" data="enable_file_write_buffering=false"/>
  6. <action application="record_session" data="/usr/local/freeswitch/recordings/${uuid}.wav"/>
  7. <action application="park"/>
  8. </condition>
  9. </extension>
  10. </include>