semvec/pypi-packages huggingface dataset:
easy-gTTS 0.1.1
Async interfaces to the easy-gTTS-API
License: MIT
Keywords: async,TTS,text to speech

# easy-gTTS-py

Asynchronous interface to an [easy-gtts](https://github.com/regulad/easy-gTTS-API) server written with `aiohttp`.  

## Examples

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