Rhymen / go-whatsapp

WhatsApp Web API
MIT License
2.05k stars 490 forks source link

Audio Message only plays at WhatsApp Web #563

Open maeverson opened 3 years ago

maeverson commented 3 years ago

Hi,

I'm sending audio messages over whatsapp.AudioMessage method and it works fine. The message is delivered to contact but, when I try play it at device, nothing works. If I play the audio message at WhatsApp Web, it works. Any idea why it's happen?

Thanks.

sostenesapollo commented 3 years ago

If you are sending as ptt:true , try to disable it, in iphone devices problably dont work

maeverson commented 3 years ago

If you are sending as ptt:true , try to disable it, in iphone devices problably dont work Hi, @sostenesapollo Removing Ptt: true from send audio method, it plays on Android, but on iPhone doesn't work.

sostenesapollo commented 3 years ago

hm, try to convert your audio for a type that is compatible for both

sostenesapollo commented 3 years ago

You need to convert to ogg format

rhsobr commented 3 years ago

Also must be recorded with 1 channel (mono)

https://github.com/Rhymen/go-whatsapp/issues/537#issuecomment-823698131