1
0
Fork 0
mirror of synced 2026-12-06 18:52:25 +00:00
No description
Find a file
2021-06-13 13:43:44 -04:00
.github/workflows Create python-publish.yml 2021-06-05 11:24:32 -04:00
easygTTS Update easygTTS.py 2021-06-13 13:43:44 -04:00
.gitignore .gitignore 2021-06-02 17:37:29 -04:00
LICENCE Gluing everything together 2021-06-03 08:55:18 -04:00
pyproject.toml Gluing everything together 2021-06-03 08:55:18 -04:00
README.md Update README.md 2021-06-03 12:06:18 -04:00
setup.cfg Update setup.cfg 2021-06-05 11:44:16 -04:00

easy-gTTS-py

Asynchronous interface to an easy-gtts server written with aiohttp.

Examples

import asyncio
from easygTTS import AsyncEasyGTTSSession


async def main():
    async with AsyncEasyGTTSSession("https://easy-gtts-api.dingus-server.regulad.xyz/") as text_to_speech:
        audio_bytes = await text_to_speech.synthesize("Hello, stinky world!")

    with open("Hello_world.mp3", "wb") as f:
        f.write(audio_bytes)
asyncio.run(main())