freeswitch icon indicating copy to clipboard operation
freeswitch copied to clipboard

Using tts mod will cause record wav file error

Open CCcn opened this issue 4 years ago • 3 comments
trafficstars

Call with mod_tts_commandline/mod_flite speak and record call. Each speak has a pause of about 5 seconds. The wav file has no pause with each speak

java esl client, speak:

       SendMsg message = new SendMsg(callId);
       message.addCallCommand("execute");
       message.addExecuteAppName("speak");
       message.addExecuteAppArg("flite|kal|hello cc cc cc");
       client.sendMessage(message);

record call:

       client.sendSyncApiCommand("uuid_record", callId + " start /home/record/" + callId + ".wav");

Freeswitch record file(need unzip):

freeswitch-record-file.wav.zip

Actual call(record by phone, need unzip): record-by-phone.wav.zip

CCcn avatar Apr 28 '21 08:04 CCcn

I tried in version :FreeSWITCH Version 1.10.6-release~64bit ( 64bit)、FreeSWITCH Version 1.8.5~64bit ( 64bit)

CCcn avatar Apr 28 '21 08:04 CCcn

@CCcn Were you able to find any workaround for this?

manasvi89 avatar Aug 27 '24 09:08 manasvi89

@manasvi89 try playback

java esl client:

  SendMsg message = new SendMsg(callId);
   message.addCallCommand("execute");
   message.addExecuteAppName("playback");
   message.addExecuteAppArg("wave/path.wav");
   client.sendMessage(message);

CCcn avatar Aug 27 '24 09:08 CCcn