0
Why is textract and gtts are so slow?
import textract as tx from gtts import gTTS text=tx.process('/storage/emulated/0/Download/Rich Dad Poor Dad ( PDFDrive ).pdf').decode('utf-8') def convert_to_audio(text): my_audio=gTTS(text) my_audio.save('hello.mp3') convert_to_audio(text) #The code above takes too much time to execute, So how can I reduce the time?
4 Respostas
0
Write the libraries yourself, better than the original authors. When you use others' code, you have to deal with their drawbacks
+ 1
A python text to speech script will usually always take a long time. Python language is slow. I got a network scanner that works, but it takes 6 minutes to get results haha. But converting a whole pdf to an audio file will take some time.
0
Hmm ok
But how can I reduce the time
0
Ok