ttsEngine module use pyttsx3 and gTTS in python. This module performs TTS and converts recieved text to voice. Also use YARP to receive text to synthesize by network. This module also publish TTS results in YARP port. If network connection is available uses gTTS system voice, if not, uses system default voice.
Documentation available on docs.
ttsEngine requires text like input to be synthesized.
The process to running the program:
- Execute programs/ttsEngine.py, to start de program.
python ttsEngine.py- Connect text source.
yarp connect /yourport/data:o /ttsEngine/data:iNOTE:
- Data results are published on
/ttsEngine/data:o
ttsEngine requires:
- Install YARP 2.3.XX+
- Install pip
- Install gTTS:
pip3 install gTTS- Install pyttsx3:
(Using YARP with Python 2.7 bindings)
pip2 install pyttsx3(Using YARP with Python 3 bindings)
pip3 install pyttsx3Using Microsoft Windows also needs:
pip3 install pypiwin32Tested on: windows 10, ubuntu 14.04, ubuntu 16.04, ubuntu 18.04, lubuntu 18.04 and raspbian.