gtts

How to use text languages in Python

How to use text languages in Python Question: I’m trying to create a text-to-speech Python program. I already have it working in English, though, I need other languages too. How can I use the same methods for other languages like Chinese? coding: from gtts import gTTS import os myText = "hello" language = ‘en’ output …

Total answers: 2

GttS Wait Until words is complete Python

GttS Wait Until words is complete Python Question: I am using gtts to read words from a list and say them one by one. The current problem I am facing is that when I play the words one by one in the list they start at the same time. Here is the reproduced result: def …

Total answers: 1

gtts.tts.gTTSError: 429 (Too Many Requests) from TTS API. Probable cause: Unknown

gtts.tts.gTTSError: 429 (Too Many Requests) from TTS API. Probable cause: Unknown Question: I’ve installed GTTS using pip with python and the first copule of iterations seemes fine. However now I keep getting this error: gtts.tts.gTTSError: 429 (Too Many Requests) from TTS API. Probable cause: Unknown I’ve removed it from a loop but it stil wont …

Total answers: 3

Not able to use gTTS module in python

Not able to use gTTS module in python Question: I tried using gTTS module in python for text to speech. However, when I run the code, I am not able to hear anything. I referred to https://pypi.org/project/gTTS/ for the installation and documentation. (I am using Ubuntu) My code: from gtts import gTTS tts = gTTS(‘hello’) …

Total answers: 3