aiogTTS
v1.1.1
AIOGTTS (Asynchronous Google Text-to-Speech), eine Python-Bibliothek, die mit der Text-to-Speech-API von Google Translate mitgeführt wird. Schreibt gesprochene MP3-Daten in eine Datei oder ein Datei-ähnliches Objekt (Bytestring) zur weiteren Audiomanipulation.
$ pip install aiogTTS import 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 ())