drachtio / drachtio-freeswitch-modules

A collection of open-sourced freeswitch modules that I use in various drachtio applications
MIT License
172 stars 119 forks source link

Overlap in recordings while using mod_tts and mod_transcribe #25

Open psccodes opened 4 years ago

psccodes commented 4 years ago

From this packer( https://github.com/davehorton/packer-drachtio-freeswitch-dialogflow) I am using mod_transcribe and mod_tts, to repeat what the user has said as given in the example https://github.com/davehorton/drachtio-freeswitch-modules/blob/master/examples/google_transcribe.js but I find the voice of callee and caller overlapping, Please listen to the recording, there are two voices coming but they are overlapping

https://gofile.io/?c=HaPiet

I followed https://github.com/davehorton/drachtio-siprec-recording-server and modified the dialplan in mrf_dialplan.xml to

<extension name="socket">
      <condition field="${sip_user_agent}" expression="^drachtio-fsmrf:(.*)$">
             <action application="answer"/>
             <action application="export" data="_nolocal_jitterbuffer_msec=100"/>
             <action application="set" data="RECORD_STEREO=false"/>
             <action application="mkdir" data="/home/admin/final/${strftime(%Y%m%d)"/>
             <action application="record_session" data="/home/admin/test.gsm"/>
             <action application="set" data="hangup_after_bridge=true"/>
             <action application="socket" data="${sip_h_X-esl-outbound} async full"/>
      </condition>
</extension>

But when I use the mod_dialogflow then the recording comes to be perfect, Please let me know what could be the reason for the issue or if any more information is required.

And thanks for such an awesome project