TTSFM: OpenAI-Compatible Text-to-Speech API Service (Project Notice)

This repository profile is provided by osrepos.com, an open source repository discovery platform.

TTSFM: OpenAI-Compatible Text-to-Speech API Service (Project Notice)

Summary

TTSFM was a project designed to mirror OpenAI's TTS service, offering a compatible API for free text-to-speech conversion with multiple voice options. Built on the openai.fm backend, it provided a Python SDK, RESTful API, and a web playground for easy testing and integration. Please note, the project is no longer functional as the openai.fm demo website has been shut down.

Repository Information

Analyzed by OSRepos on March 1, 2026

Topics

Click on any tag to explore related repositories

Use at your own risk

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.

Introdução

TTSFM was an open-source project that aimed to provide a free, OpenAI-compatible text-to-speech API service. It offered a comprehensive solution for converting text into natural-sounding speech, leveraging the openai.fm backend, which was based on OpenAI's GPT-4o mini TTS. The project included a powerful Python SDK, RESTful API endpoints, and an intuitive web playground for testing and integration.

?? NOTICE: This project is no longer functional as the openai.fm demo website has been shut down.

Key features that TTSFM offered included:

  • Multiple Voices: A selection of 11 OpenAI-compatible voices (alloy, ash, ballad, coral, echo, fable, nova, onyx, sage, shimmer, verse).
  • Flexible Audio Formats: Support for 6 audio formats (MP3, WAV, OPUS, AAC, FLAC, PCM).
  • Speed Control: Adjustable playback speed from 0.25x to 4.0x.
  • Long Text Support: Automatic text splitting and audio combining for extended content.
  • Real-time Streaming: WebSocket support for streaming audio generation.
  • Python SDK: Easy-to-use synchronous and asynchronous clients.
  • Web Playground: An interactive web interface for testing and experimentation.
  • Docker Ready: Pre-built Docker images for instant deployment.
  • OpenAI Compatible: Designed as a drop-in replacement for OpenAI's TTS API.

Instalação

Although the project is no longer functional, for historical and educational purposes, here were the installation methods:

Python package

pip install ttsfm        # core client
pip install ttsfm[web]   # core client + web/server dependencies

Docker image

TTSFM offered two Docker image variants:

Full variant (recommended)

docker run -p 8000:8000 dbcccc/ttsfm:latest

This variant included ffmpeg for advanced features like all 6 audio formats, speed adjustment, and format conversion.

Slim variant - ~100MB

docker run -p 8000:8000 dbcccc/ttsfm:slim

This minimal image provided basic TTS functionality with MP3 and WAV formats only, without speed adjustment or advanced conversion.

The container exposed the web playground at http://localhost:8000 and an OpenAI-compatible endpoint at /v1/audio/speech.

Exemplos

Here are examples of how TTSFM could be used:

Python client

from ttsfm import TTSClient, AudioFormat, Voice

client = TTSClient()

# Basic usage
response = client.generate_speech(
    text="Hello from TTSFM!",
    voice=Voice.ALLOY,
    response_format=AudioFormat.MP3,
)
response.save_to_file("hello")  # -> hello.mp3

# With speed adjustment (requires ffmpeg)
response = client.generate_speech(
    text="This will be faster!",
    voice=Voice.NOVA,
    response_format=AudioFormat.MP3,
    speed=1.5,  # 1.5x speed (0.25 - 4.0)
)
response.save_to_file("fast")  # -> fast.mp3

CLI

ttsfm "Hello, world" --voice nova --format mp3 --output hello.mp3

REST API (OpenAI-compatible)

# Basic request
curl -X POST http://localhost:8000/v1/audio/speech \
  -H "Content-Type: application/json" \
  -d '{
    "model": "tts-1",
    "input": "Hello world!",
    "voice": "alloy",
    "response_format": "mp3"
  }' --output speech.mp3

# With speed adjustment (requires full image)
curl -X POST http://localhost:8000/v1/audio/speech \
  -H "Content-Type: application/json" \
  -d '{
    "model": "tts-1",
    "input": "Hello world!",
    "voice": "alloy",
    "response_format": "mp3",
    "speed": 1.5
  }' --output speech_fast.mp3

Porquê usar (Historical Context)

TTSFM was a significant project for several reasons, even though it is no longer active. It demonstrated how an OpenAI-compatible text-to-speech service could be self-hosted and offered for free, providing an alternative for developers. Its comprehensive feature set, including multiple voices, audio formats, speed control, and long text support, made it a versatile tool for various applications. The project's Python SDK and Docker readiness also highlighted its ease of integration and deployment.

?? Disclaimer: This project was intended for educational and research purposes only. It was a reverse-engineered implementation of the openai.fm service and was not recommended for commercial use or in production environments. Users were responsible for ensuring compliance with applicable laws and terms of service.

Links

Related repositories

Similar repositories that may be relevant next.

APort Agent Guardrails: Deterministic Pre-Action Authorization for AI Agents

APort Agent Guardrails: Deterministic Pre-Action Authorization for AI Agents

September 19, 2026

APort Agent Guardrails provides deterministic pre-action authorization for AI agents, running security checks before any tool execution. This crucial mechanism prevents prompt injection from bypassing policy, ensuring robust and auditable protection for AI-driven operations.

aiai-agent-governanceguardrails
aport-spec: The Open Agent Passport (OAP) Specification for AI Agent Trust

aport-spec: The Open Agent Passport (OAP) Specification for AI Agent Trust

September 18, 2026

The aport-spec repository introduces the Open Agent Passport (OAP) specification, a critical framework for establishing trust in AI agents. It defines a lightweight, cryptographically verifiable credential, enabling real-time, pre-action authorization for AI agents across various platforms. OAP provides the essential runtime trust layer for secure and scalable agentic commerce.

aiaiagentauthorization
Atlas: Source Control for AI Coding Agents

Atlas: Source Control for AI Coding Agents

September 17, 2026

Atlas is an innovative source control system designed specifically for AI coding agents. It allows developers to manage multiple agents, track their changes, and query their activities in a unified environment. Built in Rust, Atlas ensures that every agent's commit is linked to its session, providing full context including prompts and tool calls.

aicoding-agentsgit
Goon: Autonomous AI Worker for Software Development and Custom Workflows

Goon: Autonomous AI Worker for Software Development and Custom Workflows

September 15, 2026

Goon is a self-hosted, autonomous AI worker designed to streamline software development and automate custom workflows. Built with Go and having zero dependencies, it operates as a daemon, capable of tasks from writing code and opening PRs to summarizing emails and monitoring logs. It learns from your context and asks for human approval before acting, ensuring controlled and intelligent automation.

aiautonomous-agentsgolang

Source repository

Open the original repository on GitHub.

25 counted GitHub visits

View on GitHub
OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️