gTTS (Google Text-to-Speech), a Python library and CLI tool to interface with Google Translate text-to-speech API
... from the gtts.readthedocs.io - Documentation.
pip install gTTS
Collecting gTTS
Downloading gTTS-2.5.4-py3-none-any.whl.metadata (4.1 kB)
...
Installing collected packages: gTTS
Successfully installed gTTS-2.5.4
simple python script with one example : create an audio file in romanian language.
from gtts import gTTS
tts = gTTS('Azi este 25 aprilie 2025', lang='ro', tld='ro')
tts.save('azi25.mp3')