Skip to main content

Async interfaces to the easy-gTTS-API

Project description

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())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

easy-gTTS-0.1.1.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

easy_gTTS-0.1.1-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page