ttsfm  by dbccccccc

API server mirroring OpenAI's TTS service

created 4 months ago
608 stars

Top 54.8% on SourcePulse

GitHubView on GitHub
Project Summary

TTSFM provides a reverse-engineered API server that mirrors OpenAI's TTS service, offering a compatible interface for text-to-speech conversion with multiple voice options. It is intended for learning and testing purposes, not production use, and targets developers needing a local or self-hosted TTS solution.

How It Works

TTSFM utilizes a Flask web framework for its API server and Celery for asynchronous task processing, managing text-to-speech requests via a Redis broker. This architecture allows for efficient handling of potentially long-running TTS generation tasks, offloading them to worker processes and returning results asynchronously. The project aims for full compatibility with OpenAI's TTS API format, enabling seamless integration for users familiar with that ecosystem.

Quick Start & Requirements

  • Install/Run: docker pull dbcccc/ttsfm:latest and docker run -d --name ttsfm -p 7000:7000 -p 6379:6379 -v $(pwd)/voices:/app/voices dbcccc/ttsfm:latest
  • Prerequisites: Python 3.13+, Redis server, Docker (optional).
  • Demo: Official Demo

Highlighted Details

  • Fully compatible with OpenAI's TTS API format.
  • Supports multiple voices (alloy, ash, ballad, coral, echo, fable, onyx, nova, sage, shimmer, verse).
  • Asynchronous task processing via Celery and Redis.
  • Includes a basic frontend interface.

Maintenance & Community

The project is actively under development with a v2 branch noted as not recommended for production. Stable documentation is available for v1.

Licensing & Compatibility

Licensed under the MIT License, permitting commercial use and closed-source linking.

Limitations & Caveats

The project explicitly states it is for learning and testing purposes only and not recommended for production use. The v2 branch is under active development.

Health Check
Last commit

6 days ago

Responsiveness

1 day

Pull Requests (30d)
2
Issues (30d)
0
Star History
200 stars in the last 90 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Andre Zayarni Andre Zayarni(Cofounder of Qdrant), and
2 more.

RealChar by Shaunwei

0.1%
6k
Real-time AI character/companion creation and interaction codebase
created 2 years ago
updated 1 year ago
Feedback? Help us improve.