schmouk / ArcheryVideoTraining

Multi camera video training for Archery, with real-time as well as delayed and slow-motion captures.
MIT License
1 stars 0 forks source link

Install text-to-speech external library #51

Closed schmouk closed 3 years ago

schmouk commented 3 years ago

Search for such a free library, then download it for it to be accessible from application AVT.

schmouk commented 3 years ago

Finally, found that library pyttsx3 was fine: (pip install pyttsx3, pypi project https://pypi.org/project/pyttsx3/, github repository: https://pypi.org/project/pyttsx3/). Works also with Python 3.8 while developed w. Python 3.7 max. Installed, played a little bit with it. Ok for numbers, in French and in English! Preferred to use library pyttsx3 rather than Google one gTTS because pyttsx3 is directly callable in Python while gTTS generates first files that can then be played on demand by os.system() calls (which is less easy to use and which could later lead to security concerns!)