Closed FockeOeuf closed 1 year ago
There may be a lib version issue. I can't seem to find out which dependencies versions need to be installed and how to have a stable gtts install. I've started fresh after uninstalling and reinstalling python3 entirely, but same behavior as previously.
At some point it worked as intended, but I can't pinpoint what is wrong...
Ok this was a network issue, uninstalled ifupdown for network-manager and it is ok now...
Ah, glad you figured it out!
Prerequisites
pip install --upgrade gTTS
)Current Behaviour (steps to reproduce)
I'm using gTTS on a Rockpi4b which I just migrated from Debian 10 to 11. As I got rid from Python 2.7 in the process, I started to have big latency in gTTS files generation. So I decided to completely clean Python (uninstall all Python versions and erasing any remaining Python lib from /usr/local/lib), reinstall Python 3.9 and gTTS, but to no avail. When using either the API or gtts-cli, the mp3 file save takes around 1mn30s / 2mn. A simple
hangs at this point
After 2mn, success the file is generated as intended.
Expected Behaviour
On my Windows PC on the same network, using the same DNS, gTTS works fine without any latency during the save step.
Context
I detected the issue as I'm running a Jeedom plugin using gTTS. Any TTS command has a 2mn latency now, and I pinpointed the issue at gTTS save step.
Environment