Giter VIP home page Giter VIP logo

Comments (9)

lushan88a avatar lushan88a commented on August 10, 2024 6

Google recently restricted API use speed.
You can change IP or use slowly.

from google_trans_new.

raymond-edgerly avatar raymond-edgerly commented on August 10, 2024 1

@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.

jonas-nothnagel avatar jonas-nothnagel commented on August 10, 2024 1

@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.

petertadrous avatar petertadrous commented on August 10, 2024

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.

raymond-edgerly avatar raymond-edgerly commented on August 10, 2024

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.

jonas-nothnagel avatar jonas-nothnagel commented on August 10, 2024

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.

jonas-nothnagel avatar jonas-nothnagel commented on August 10, 2024

@megaman110101 Did you find a solution for this in your work?

from google_trans_new.

kanchansapkota27 avatar kanchansapkota27 commented on August 10, 2024

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.

Romczyslaw avatar Romczyslaw commented on August 10, 2024

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)

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.