Skip to main content

Real-time speech generation from short to massive prompts in a single request — seamless and scalable, regardless of the length.

Project description

TTS Accelarator

Real-time speech generation in seconds, even for extremely long sentences up to 16k words.


Demo

Listen the sample output to listen to the sample MP3 output.

Your browser does not support the audio element.

TTS Accelerator is a revolutionary text-to-speech acceleration framework that allows real-time audio generation and playback — even for extremely long texts (up to 16,000 characters) — in just a few seconds.
Unlike traditional TTS(Text To Speech) systems which wait for full generation before playback, TTS Accelerator *splits, **generates, and *plays audio simultaneously — ensuring ultra-fast startup and continuous natural speech.


Key Features

  • Real-Time TTS: Speak extremely long texts within 2–3 seconds startup.
  • Compatible with Any Library: Works with local TTS engines (like Edge-TTS) and even API-based services (like ElevenLabs, Typecast.ai, etc.).
  • Streaming Playback: Audio starts playing while it is still being generated.
  • Library-Independent Core: Easily pluggable with your preferred TTS backend.
  • Minimal API: Just one function call to start speaking — speak_text(text).

How It Works

Internally, TTS-Accelerator:

  1. Comming Soon
  2. Comming Soon
  3. Comming Soon

Installation

You can install it from PyPI by running the following command:

pip install tts-accelerator

Or you can install it from source:

pip install .

Examples

Simple Usage:

>>> import tts_accelerator as tts
>>> from time import perf_counter
>>> text = ("""Hello, 'TTS-Accelerator' achieves near-instant speech generation. Converting extremely long texts (up to 16 thousand + characters) into natural voices, high-quality audio within just 2–3 seconds, delivering breakthrough real-time performance without sacrificing voice clarity. Thank you!!""")
>>> tts.speak_text(text)
>>> # it will generate the audio in less then 3 seconds regardless of number of lines in the 'text'

Requirements

  • Python v3.8+

Documentation

https://tts-accelerator.readthedocs.io/


License

This project is licensed under MIT.


Made with passion and precision.

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

tts_accelerator-0.0.1.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tts_accelerator-0.0.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file tts_accelerator-0.0.1.tar.gz.

File metadata

  • Download URL: tts_accelerator-0.0.1.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for tts_accelerator-0.0.1.tar.gz
Algorithm Hash digest
SHA256 cc9929d10d53614b0826da70a1917cbeb5a4a925934ba14252921ed63dde1793
MD5 51bdda485ddee91a49cecce51b4c356b
BLAKE2b-256 01c4a211c073be263b3ef9e20e47a52d7b41c1baff9f57f649cac2fbc99930a5

See more details on using hashes here.

File details

Details for the file tts_accelerator-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for tts_accelerator-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ae465d1dff1f792c648c1fff9a3ecb92c62020192f2a87b2153399dcf44bb7e5
MD5 f4fb2be04709bbaf29bc9646e71cd006
BLAKE2b-256 c8f58ebb33de5b9e2396a300cf4d0c2aa73cb71913f7e1995ace5ac2813b8c00

See more details on using hashes here.

Supported by

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