Comments (9)
Google recently restricted API use speed.
You can change IP or use slowly.
from google_trans_new.
@jonas-nothnagel the 429 error disappeared in less than 24 hours.
I just returned a successful request for 40,328 English characters into 3 languages (124,940 characters returned) - whitespace included.
The limit might actually be somewhere in the neighborhood of 6m. I'll keep track today and see if/when I hit the limit 🙂👍
Update: Returned another 620,346 off that original 40,328 (more languages beyond the initial 3). So far, a total of 745,286 characters return "ok" within a period of 1 hour.
Update2: Another 30 mins later I tried to run the original again for Vietnamese translation and received 429 error. Google let me reach 745,286 first, but gave me the error some time later. 🤷♂️🤔🙂
Update3: After about 10 hours, the limit reset, and I was able to query again 👍
from google_trans_new.
@megaman110101 thank you for checking and logging :) I think my best shot is to submit the tasks in batches. Unfortunately my translation code is embedded in a long function that I would like to run once a week to get an updated dataset. I think I need to re-write this then.
@lushan88a any solution in sight?
from google_trans_new.
I got the same message and I used the proxies feature in the google_translator() function but still getting the same message. How would I go about changing the IP? Everything I've read involves passing a different IP to some sort of request but I'm not sure how to do that with this module
from google_trans_new.
Anyone know what Google's rate limit is? 🙂 I think I hit it too hard 🔨😛
google_new_transError: 429 (Too Many Requests) from TTS API. Probable cause: Unknown
Googled "Text-to-Speech API rate limit", but it only seems it's per minute/request 🤔
https://cloud.google.com/text-to-speech/quotas
I reduced my request to an amount that previously worked - still 429'd.
From what I can tell, it seems to be on a per day basis with TTS API, but I'm uncertain what it might be 🤔🙂
from google_trans_new.
I am running into the same issue. I used to employ the old google translator library and iterated it over hundreds of paragraphs. Anyone has found a solution? @lushan88a could you provide some instructions for this for the Python implementation?
from google_trans_new.
@megaman110101 Did you find a solution for this in your work?
from google_trans_new.
Any help please tried to translate a list of 1600 strings i.e around 147,171 character length.
google_trans_new.google_trans_new.google_new_transError: 429 (Too Many Requests) from TTS API. Probable cause: Unknown
from google_trans_new.
I tried to translate several hundred short lines of text and got the infamous 429 (shouldn't that raise an error?). The translated lines were in the list because I wanted to test a bulk translation. Maybe it is better to use a generator on a list with time.sleep(1) before yielding the translation function?
from google_trans_new.
Related Issues (20)
- How to deal with multiple returned translations? How to get 1st. translatin only? HOT 1
- PyPi release is outdated which causes JSON decode error on Google Colab HOT 7
- google trans new not working, causing jsonDecodeError HOT 13
- cannot import name '__title__' from 'requests.__version__ HOT 1
- this does not work at all, JSONDecodeError when parse the response HOT 3
- translate result is wrong comparing to the google translate website HOT 4
- error HOT 2
- python 3.9 object NoneType can't be used in 'await' expression
- src always 'en'
- 无法翻译 HOT 3
- the JSON object must be str, bytes or bytearray, not NoneType
- Bug on google_trans_new.py - google_translator.translate HOT 1
- sample code has error
- google_new_transError: 404 (Not Found) from TTS API. Probable cause: Unknown HOT 6
- requests.exceptions.ConnectTimeout HOT 1
- detect_lang not working HOT 7
- Issue #57 persists despite downloading updated codes HOT 1
- 404 Error HOT 4
- TypeError at random times
- 404 (Not Found) from TTS API. Probable cause: Unknown HOT 1
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 google_trans_new.