-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
converting a longer pdf - of say 7 - 8 pages #297
Comments
Hi there! Hmm, for a 7 page PDF, I'd say the cause is indeed because you're requesting a lot and eventually the server shuts you down after too many quick requests. Unfortunately there's not any way to tell gTTS to 'slow down' the requests. So I'll add this as an enhancement. In the meantime, if that's what's actually happening, you'll have to make separate requests with a slight sleep between them. |
Yes, thats what is happening here... Thanks for the enhancement! Also wish to add, the outcome of gTTS is way better than pystxx3 . . Thanks for your effort! :) |
A related question @pndurette : would using my own API key created in google cloud shell allow me to process longer files? |
It works great for smaller chunk of texts. But if I try to convert pdfs like a 7 page pdf it always fails after a very long wait. it would run for hours and fail, wanted to know if this is meant only for smaller texts? what's the alternative??
The error would usually be a connection error.,, but that's expected if it runs for few hours to convert a seven page pdf right??
gtts.tts.gTTSError: 500 (Internal Server Error) from TTS API. Probable cause: Uptream API error. Try again later.
My code is very simple and straight-forward :
The text was updated successfully, but these errors were encountered: