WhiskeySockets / Baileys

Lightweight full-featured typescript/javascript WhatsApp Web API
https://baileys.whiskeysockets.io/
MIT License
4.07k stars 1.38k forks source link

[BUG] bug when sending ptt audio in latest version #1120

Open bifurx opened 2 weeks ago

bifurx commented 2 weeks ago

Describe the bug

Until version 6.7.8 when sending audio with ptt: true, sound waves appeared in the voice note. But in the latest version (6.7.9) these waves disappeared without having changed anything. baileys in my package.json: "@whiskeysockets/baileys": "npm:@whiskeysockets/baileys@6.7.9" If I change that last "9" to "8" the ptt works correctly and includes the waves.

To Reproduce send audio: await conn.sendMessage(id, { audio: audio, mimetype: 'audio/mpeg', ptt: true }, { quoted: null })

Expected behavior send the ptt: true audio as a voice note and include the waves

Environment (please complete the following information):

IMG_20241104_001459

ecatugy commented 2 weeks ago

I have the same problem; something was changed that removed the audio waves.

ecatugy commented 2 weeks ago

I checked, and the issue also occurs in previous versions; there's no specific version that works.

ecatugy commented 2 weeks ago

Describe the bug

Until version 6.7.8 when sending audio with ptt: true, sound waves appeared in the voice note. But in the latest version (6.7.9) these waves disappeared without having changed anything. baileys in my package.json: "@whiskeysockets/baileys": "npm:@whiskeysockets/baileys@6.7.9" If I change that last "9" to "8" the ptt works correctly and includes the waves.

To Reproduce send audio: await conn.sendMessage(id, { audio: audio, mimetype: 'audio/mpeg', ptt: true }, { quoted: null })

Expected behavior send the ptt: true audio as a voice note and include the waves

Environment (please complete the following information):

  • Is this on a server? - yes
  • Do you have multiple clients on the same IP? - no
  • Are you using a proxy? - no

IMG_20241104_001459

Did yours work on version 6.7.8? Mine stopped working on all versions.

bifurx commented 2 weeks ago

Describe the bug Until version 6.7.8 when sending audio with ptt: true, sound waves appeared in the voice note. But in the latest version (6.7.9) these waves disappeared without having changed anything. baileys in my package.json: "@whiskeysockets/baileys": "npm:@whiskeysockets/baileys@6.7.9" If I change that last "9" to "8" the ptt works correctly and includes the waves. To Reproduce send audio: await conn.sendMessage(id, { audio: audio, mimetype: 'audio/mpeg', ptt: true }, { quoted: null }) Expected behavior send the ptt: true audio as a voice note and include the waves Environment (please complete the following information):

  • Is this on a server? - yes
  • Do you have multiple clients on the same IP? - no
  • Are you using a proxy? - no

IMG_20241104_001459

Did yours work on version 6.7.8? Mine stopped working on all versions.

Yes, if I put in the package: "dependencies": { "@whiskeysockets/baileys": "npm:@whiskeysockets/baileys@6.7.8" }

This works correctly but if I put it like this: "dependencies": { "@whiskeysockets/baileys": "^6.7.8" } Not working. It only works by entering "npm:@whiskeysockets/baileys@6.7.8"

This at least works for me

ecatugy commented 2 weeks ago

npm:@whiskeysockets/baileys@6.7.8

It worked perfectly, but let's see if they fix it in future versions, this is critical.