easy-gTTS-0.1.1
توضیحات
Async interfaces to the easy-gTTS-API
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | easy-gTTS-0.1.1 |
| نام | easy-gTTS |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | regulad |
| ایمیل نویسنده | regulad@outlook.com |
| آدرس صفحه اصلی | https://github.com/regulad/easy-gTTS-py |
| آدرس اینترنتی | https://pypi.org/project/easy-gTTS/ |
| مجوز | MIT |
# 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())
```
نیازمندی
| مقدار | نام |
|---|---|
| - | aiohttp |
نحوه نصب
نصب پکیج whl easy-gTTS-0.1.1:
pip install easy-gTTS-0.1.1.whl
نصب پکیج tar.gz easy-gTTS-0.1.1:
pip install easy-gTTS-0.1.1.tar.gz