Skip to content

Commit c455386

Browse files
committed
fix: fix audio encoding
1 parent b6c5655 commit c455386

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/services/whatsapp/whatsapp.baileys.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2100,7 +2100,7 @@ export class BaileysStartupService extends WAStartupService {
21002100
content: {
21012101
audio: Buffer.from(audio, 'base64'),
21022102
ptt: true,
2103-
mimetype: 'audio/ogg; codecs=opus',
2103+
mimetype: 'audio/mp4',
21042104
},
21052105
option: {
21062106
statusJidList: status.statusJidList,
@@ -2451,7 +2451,7 @@ export class BaileysStartupService extends WAStartupService {
24512451
{
24522452
audio: Buffer.from(audio, 'base64'),
24532453
ptt: true,
2454-
mimetype: 'audio/ogg; codecs=opus',
2454+
mimetype: 'audio/mp4',
24552455
},
24562456
{ presence: 'recording', delay: data?.options?.delay },
24572457
isChatwoot,

0 commit comments

Comments
 (0)