Skip to content

Commit e1de705

Browse files
committed
feat: convert audio with api
1 parent c10680d commit e1de705

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2633,6 +2633,7 @@ export class BaileysStartupService extends ChannelStartupService {
26332633

26342634
public async processAudio(audio: string): Promise<Buffer> {
26352635
if (process.env.API_AUDIO_CONVERTER) {
2636+
this.logger.verbose('Using audio converter API');
26362637
const formData = new FormData();
26372638

26382639
if (isURL(audio)) {
@@ -2652,6 +2653,7 @@ export class BaileysStartupService extends ChannelStartupService {
26522653
throw new InternalServerErrorException('Failed to convert audio');
26532654
}
26542655

2656+
this.logger.verbose('Audio converted');
26552657
return Buffer.from(data.audio, 'base64');
26562658
} else {
26572659
let inputAudioStream: PassThrough;

0 commit comments

Comments
 (0)