Simple pyhton script using GTTS to transform any text to voice
git clone https://github.com/networkdavit/text_to_voice.git
cd text_to_voice
pip3 install gtts
python3 main.py
To change the text, simply open main.py file and, and whatever is in variable 'text = "Hello, how are you?"', change the text, for example
text = "this is a sample text"