Skip to main content
Archived

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

Metadata

Release files for async-gTTS 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for async-gTTS 0.3.0
File Size Uploaded
async-gTTS-0.3.0.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for async-gTTS 0.3.0
File Interpreter ABI Platform
async_gTTS-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.2 kB

Release files / async-gTTS-0.3.0.tar.gz

Download URL async-gTTS-0.3.0.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4c139a63554b1e4fdc42d597851e41be5c5bcedd1a2518a84cdcdb932781330c
BLAKE2b-256 checksum
How to use checksums
b96ec55570c49b17418a3fad9e53c097a55b7003ab7ba1d8e32293e64cf4c861
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / async_gTTS-0.3.0-py3-none-any.whl

Download URL async_gTTS-0.3.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68954692cca18d12093bab46c471cd2bf052772efc58428442c52f06678480df
BLAKE2b-256 checksum
How to use checksums
9c8a73b2017709e06d29171a41ccf65df41e5db3df5a990c26227a55c9936f89
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page