Git Product home page Git Product logo

Comments (14)

alfred82santa avatar alfred82santa commented on June 30, 2024 1

You are right Whalesong can not send audio files like voice recordings, I mean, it can not send PushToTalk messages.
But, I've tested minibot with this message:

/download https://sample-videos.com/audio/mp3/crowd-cheering.mp3

And it works like a PushToTalk message. Examples are just examples, they don't try to be perfect, so it is possible you are using a url which responses with a composed content-type (audio/ogg; codecs=opus) header and whatsappweb fails. Could you post your url?

from whalesong.

alfred82santa avatar alfred82santa commented on June 30, 2024

Have you tried an ogg audio file?

from whalesong.

DSchndr avatar DSchndr commented on June 30, 2024

i think mine was also https://sample-videos.com/audio/mp3/crowd-cheering.mp3
wierd that it crashed in my case.

from whalesong.

alfred82santa avatar alfred82santa commented on June 30, 2024

imatge

Does it still happen to you? I will need more info.

from whalesong.

alfred82santa avatar alfred82santa commented on June 30, 2024

Any news here?

from whalesong.

DSchndr avatar DSchndr commented on June 30, 2024

Minibot and my own bot still fail to send the file as ptt message.
Trying to send an mp3 over waweb also fails in my case ("unsupported file"), so maybe there is something in waweb code that is being retarded?

Traceback (most recent call last):
  File "examples/minibot.py", line 133, in make_download
    message.id)))
whalesong.errors.UnknownError

from whalesong.

alfred82santa avatar alfred82santa commented on June 30, 2024

Well, if WhatsApp Web fails there is nothing we can do. But is strange, it works in my case. Which OS do you use? And browser?

from whalesong.

DSchndr avatar DSchndr commented on June 30, 2024

Firefox 64.0 (64-bit), Ubuntu 18.04 LTS

MP4 upload doesn't work in selenium window, but in normal window it works which is kinda wierd.
In normal chrome window everything works, so i think maybe firefox version is a little bit too old and waweb code detects this or firefox interferes with it somehow?

Edit: Ok, i've tried chromium backend -> mp4 send fails because of "unsupported file type"
Error is a little bit more informative this time ;)
(whalesong.errors.UnknownError: InvalidMediaFileType: ExtendableError)

At least sending mp3 as ptt message works in chromium.

from whalesong.

alfred82santa avatar alfred82santa commented on June 30, 2024

Finally, I've found the problem, at least in Firefox. Default Firefox profile template disabled all codecs. Now it should work for all codecs supported by ffmpeg.

On the other hand, I guess we can not solve problem with h.264 codec on Chronium: https://www.chromium.org/audio-video

I didn't find way to enable ffmpeg at runtime.

from whalesong.

alfred82santa avatar alfred82santa commented on June 30, 2024

Could you test it?

from whalesong.

alfred82santa avatar alfred82santa commented on June 30, 2024

Maybe, best option would be transcode files before to send them...

from whalesong.

DSchndr avatar DSchndr commented on June 30, 2024

Thanks, with enabled codecs everything works on firefox!

from whalesong.

tulssinep avatar tulssinep commented on June 30, 2024

Hey, running into the same issue with Safari on Desktop at the moment. I can send MP3 but not OGG. Is there anything I can do about it or is there a list of supported audio codecs?

from whalesong.

DSchndr avatar DSchndr commented on June 30, 2024

Use ffmpeg to transcode the files into mp3 format or use firefox.

from whalesong.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.