aiogTTS
v1.1.1
AIOGTTS (Asynchronous Google Text-to-Speech), pustaka Python untuk berinteraksi dengan API Text-to-Speech Google Translate. Menulis data MP3 yang diucapkan ke file atau objek seperti file (bytestring) untuk audiomanipulasi lebih lanjut.
$ 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 ())