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 Accelerator

Real-time natural speech generation — delivers real-time, natural speech from text in as little as 2-3 seconds, handling even extremely long sentences (16,000+ words) with instant voice output—no waiting or file saving.

This library works entirely in RAM to make speech super fast using the Edge-TTS engine. Edge-TTS sounds great, but it slows way down when you ask it to read long sentences—that was a big bottleneck for real-time apps. TTS Accelerator fixes that: it starts talking in just 2–3 seconds, even for thousands of words, by streaming audio straight from memory with no file saves or delays. Whether you’re building a chatbot or powering my AI assistant Nisha, who needs instant replies, this tool makes your app feel quick, smart, and alive.

Download

Built by Uday & Ranjit

Want to ask questions or share ideas?
👉   — we're active and friendly!

💡 Actively Developed & Maintained: This project is continuously improved with regular updates, bug fixes, and support. You're never alone — the journey keeps moving forward! 🚀🔧 GitHub Repo

Feel free to reach out, open issues, or suggest ideas — we’re building this together. 🤝

📧 Ranjit: ranjitdax89@gmail.com

📧 Uday: udaysubba2004@gmail.com


What Problem It Solves❓

Most TTS systems force you to wait while they generate the entire audio file — especially for long texts — before playback starts.

That’s slow, frustrating, and unusable for real-time apps.

TTS Accelerator solves this by streaming audio in real time.
It starts playback in just 2–3 seconds, even for huge texts. No disk I/O, no waiting — just seamless, instant voice output.
Perfect for:

  • Voice assistants
  • Chatbots
  • Narration tools
  • Live reading apps

📖 Quick Index

💡Insight

TTS Accelerator is designed for ultra-fast playback. Unlike typical TTS systems that wait for full audio generation, this one begins speaking within 2–3 seconds — even for texts up to 16,000+ words. It streams while generating, offering smooth, natural output with zero delay.

✨Key Features

  • Super Fast Speech (Real-Time TTS): Begins speaking in just 2–3 seconds, even for extremely long texts — up to 16,000+ words.
  • Highly Compatible: Seamlessly works with popular TTS engines like Edge-TTS (tested), Coqui TTS etc..
  • Streaming Playback: Audio starts playing instantly while it’s still being generated — no delay, no wait.
  • Minimal API: Just a single function call to start speaking — speak_text(text).
  • Zero-Delay Playback: Audio plays with zero delay, It is a smart system that uses fast RAM-based buffering and a separate producer-consumer pipeline to keep things smooth and super quick.

🧠Why we Made This Library

While working on our personal AI assistant, Nisha, we (Uday Subba & Ranjit Das) ran into a huge bottleneck:
Most TTS libraries either sounded robotic or took forever to generate long sentences — especially when trying to keep the voice natural.

We needed something fast enough for real-time conversation but still clear and human-like — and nothing we found was good enough.
That’s why we built TTS Accelerator.

It streams audio from text in just seconds, even for huge inputs, and it feels natural — exactly what Nisha needed to sound like a confident and responsive AI.

So yes — this library is not just an experiment, it powers a bigger dream.


Curious about my AI assistant Nisha?
She's the reason this library was born — and she's coming soon.
Stay tuned on GitHub or Discord for updates!

Meet Nisha – Your Bold AI AssistantGitHub Repo

🔧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 .

or

git clone https://github.com/RanjitDas-IN/tts-accelerator.git
cd tts-accelerator/example_uses
python basic_uses.py

Explore the TTS Accelerator Source Code

📚Examples

Simple Usage:

# Import the library
import tts_accelerator as tts

# Specify any supported voice from Edge TTS (e.g., en-IN-PrabhatNeural, en-GB-LibbyNeural, en-US-GuyNeural)
voice ="en-US-AvaMultilingualNeural" #You can pass any voice from edge tts.

text = (
    "Imagine reading out a 1,000-word story or a chatbot message stream — "
    "normally, you'd wait several seconds or even minutes before hearing anything. "
    "But with tts-accelerator, audio playback begins in just 2–3 seconds, "
    "no matter how long the input is. It streams audio directly from RAM, "
    "without saving to disk, and keeps the voice natural and fluid throughout. "
    "This makes it perfect for assistants, narrators, or any real-time voice-based apps."
)


# Speak the text — playback starts almost instantly
tts_accelerator.speak_text(text,voice)

📦Requirements

  • Python v3.8+
  • A stable internet connection

📖Documentation

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

🤝 Support & Contribution

Have questions or ideas to improve the project? We’re building this together!

We welcome bug reports, feature requests, or maybe a quick hello if you're enjoying the project!

Creators

Built and maintained by Uday Subba & Ranjit Das

Made with passion and precision.

📝License

This project is licensed under MIT.

CTA:

Try it now and tell us what you build!

🔮 About Nisha (Coming Soon)

Nisha is my personal AI assistant — sassy, smart, and ultra-fast.
She’s designed to handle real-time conversations with confidence and clarity, and tts-accelerator is one of the core techs that power her voice.

Want to follow her journey or be the first to try her out?

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-1.0.4.tar.gz (12.1 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-1.0.4-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tts_accelerator-1.0.4.tar.gz
Algorithm Hash digest
SHA256 0798c2ee37b48a72d6a133ed3b09184bdda4121a8ef82018d04ff6fc142a2671
MD5 9b4aac5c0401e7f9a1ede6fdef747aa7
BLAKE2b-256 7085e6aa6a76e4ad0fdbe45ede1b707eda859cdb22cb0feae6a33cc9c7a3fe6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tts_accelerator-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7597a0c6b32f0c2a148e5a2e96942af4b58177b56047f198128e52472234a704
MD5 4b3dbcffe8730e6e0b0f47a39380e7d7
BLAKE2b-256 d1689a3c23edcad9ab8a28dbfaf78d7b3deb882fe8364ef70c84851e5b2fcc43

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