diff --git a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts index 3e9cc1ea..2bd089df 100644 --- a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts +++ b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts @@ -3001,7 +3001,20 @@ export class BaileysStartupService extends ChannelStartupService { .noVideo() .audioCodec('libopus') .addOutputOptions('-avoid_negative_ts make_zero') + .audioBitrate('128k') + .audioFrequency(48000) .audioChannels(1) + .outputOptions([ + '-write_xing', '0', + '-compression_level', '10', + '-application', 'voip', + '-fflags', '+bitexact', + '-flags', '+bitexact', + '-id3v2_version', '0', + '-map_metadata', '-1', + '-map_chapters', '-1', + '-write_bext', '0' + ]) .pipe(outputAudioStream, { end: true }) .on('error', function (error) { console.log('error', error);