This project has been archived by its maintainers, and is no longer receiving any updates.
asyncgTTS
Asynchronous interfaces to the official Google Text to Speech API written with aiohttp.
Similar to googleapis/python-texttospeech in concept, but asyncgTTS was designed with asynchronously in mind and is expected to be more performant.
Example
import asyncio
import json
from asyncgTTS import AsyncGTTSSession, ServiceAccount
async def main():
with open("SERVICE_ACCOUNT.JSON") as service_account_json:
service_account_dict = json.load(service_account_json)
service_account = ServiceAccount.from_service_account_dict(service_account_dict)
async with AsyncGTTSSession.from_service_account(service_account) as google_tts:
audio_bytes = await google_tts.synthesize("vine boom")
with open("Hello_world.mp3", "wb") as f:
f.write(audio_bytes)
asyncio.run(main())
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file async-gTTS-0.3.0.tar.gz.
File metadata
- Download URL: async-gTTS-0.3.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c139a63554b1e4fdc42d597851e41be5c5bcedd1a2518a84cdcdb932781330c
|
|
| MD5 |
d1fd96604d17f00e4d42f58f84e56e1f
|
|
| BLAKE2b-256 |
b96ec55570c49b17418a3fad9e53c097a55b7003ab7ba1d8e32293e64cf4c861
|
File details
Details for the file async_gTTS-0.3.0-py3-none-any.whl.
File metadata
- Download URL: async_gTTS-0.3.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68954692cca18d12093bab46c471cd2bf052772efc58428442c52f06678480df
|
|
| MD5 |
9345d3c785c4e71dfdc96014d4d7e56c
|
|
| BLAKE2b-256 |
9c8a73b2017709e06d29171a41ccf65df41e5db3df5a990c26227a55c9936f89
|