aiogTTS
v1.1.1
aiogTTS (asynchronous Google Text-to-Speech), a Python library to interface with Google Translate's text-to-speech API. Writes spoken mp3 data to a file or a file-like object (bytestring) for further audiomanipulation.
$ pip install aiogTTSimport asyncio
from io import BytesIO
from aiogtts import aiogTTS
async def main():
aiogtts = aiogTTS()
io = BytesIO()
await aiogtts.save('Привет, мир!', 'audio.mp3', lang='ru')
await aiogtts.write_to_fp('Hallo!', io, slow=True, lang='de')
asyncio.get_event_loop().run_until_complete(main())