Comments (14)
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.
Have you tried an ogg audio file?
from whalesong.
i think mine was also https://sample-videos.com/audio/mp3/crowd-cheering.mp3
wierd that it crashed in my case.
from whalesong.
Does it still happen to you? I will need more info.
from whalesong.
Any news here?
from whalesong.
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.
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.
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.
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.
Could you test it?
from whalesong.
Maybe, best option would be transcode files before to send them...
from whalesong.
Thanks, with enabled codecs everything works on firefox!
from whalesong.
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.
Use ffmpeg to transcode the files into mp3 format or use firefox.
from whalesong.
Related Issues (20)
- Not able to run examples HOT 2
- Forward Image HOT 2
- Problem Execute example HOT 1
- How can i add participants to group? HOT 5
- Error after executing the minibot.py HOT 3
- Problems using pyppeteer and Chromium HOT 3
- Custom Sticker HOT 2
- problem running minibot.py example HOT 3
- Message: Service geckodriver unexpectedly exited. Status code was: -11 HOT 1
- Clearing chats
- No such file or directory - Windows HOT 4
- ManagerNotFound: Manager messages not found HOT 18
- exception=ManagerNotFound('Manager messages not found' HOT 3
- error on chromium HOT 2
- Delete or archive Chat
- Help to hire someone with this expertise (Whalesong) HOT 3
- smartrply and calatalogos functions HOT 1
- Images/documents failed to send HOT 1
- error on send text message HOT 4
- problems using the library: webpackJsonp is not a function HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whalesong.