Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Free, high-quality text-to-speech API endpoint to replace OpenAI, Azure, or ElevenLabs
| Date | Stars |
|---|---|
| 2026-07-24 | 1998 |
| 2026-07-25 | 1999 |
| 2026-07-28 | 1999 |
| 2026-07-30 | 1999 |
| 2026-07-31 | 2008 |
| 2026-08-07 | 2023 |
| 2026-08-15 | 2041 |
| 2026-08-18 | 2044 |
| 2026-08-19 | 2045 |
| 2026-08-20 | 2048 |
| 2026-08-21 | 2053 |
| 2026-08-23 | 2057 |
| 2026-08-24 | 2059 |
| 2026-08-25 | 2061 |
| 2026-08-26 | 2063 |
| 2026-08-27 | 2067 |
| 2026-08-28 | 2070 |
| 2026-08-30 | 2071 |
| 2026-08-31 | 2071 |
| 2026-09-01 | 2072 |
| 2026-09-02 | 2075 |
| 2026-09-04 | 2077 |
| 2026-09-06 | 2078 |
| 2026-09-07 | 2083 |
| 2026-09-08 | 2086 |
| 2026-09-09 | 2088 |
| 2026-09-10 | 2089 |
| 2026-09-11 | 2093 |
| 2026-09-12 | 2094 |
| 2026-09-14 | 2098 |
| 2026-09-15 | 2099 |
| 2026-09-16 | 2103 |
| 2026-09-18 | 2104 |
| 2026-09-19 | 2106 |
| 2026-09-20 | 2106 |
Today
— stars today
This week
+12 stars this week
This month
+53 stars this month
Momentum
0.0
growth rate 0.57%/day
# OpenAI-Compatible Edge-TTS API 🗣️





[](https://discord.gg/GkFbBCBqJ6)
[](https://linkedin.com/in/travisvannimwegen)
This project provides a local, OpenAI-compatible text-to-speech (TTS) API using `edge-tts`. It emulates the OpenAI TTS endpoint (`/v1/audio/speech`), enabling users to generate speech from text with various voice options and playback speeds, just like the OpenAI API.
`edge-tts` uses Microsoft Edge's online text-to-speech service, so it is completely free.
[View this project on Docker Hub](https://hub.docker.com/r/travisvn/openai-edge-tts)
# Please ⭐️ star this repo if you find it helpful
## Features
- **OpenAI-Compatible Endpoint**: `/v1/audio/speech` with similar request structure and behavior.
- **SSE Streaming Support**: Real-time audio streaming via Server-Sent Events when `stream_format: "sse"` is specified.
- **Supported Voices**: Maps OpenAI voices (alloy, echo, fable, onyx, nova, shimmer) to `edge-tts` equivalents.
- **Flexible Formats**: Supports multiple audio formats (mp3, opus, aac, flac, wav, pcm).
- **Adjustable Speed**: Option to modify playback speed (0.25x to 4.0x).
- **Optional Direct Edge-TTS Voice Selection**: Use either OpenAI voice mappings or specify [any edge-tts voice](https://tts.travisvn.com) directly.
## ⚡️ Quick start
The simplest way to get started without having to configure anything is to run the command below
```bash
docker run -d -p 5050:5050 travisvn/openai-edge-tts:latest
```
This will run the service at port 5050 with all the default configs
_(Docker required, obviously)_
## Setup
### Prerequisites
- **Docker** (recommended): Docker and Docker Compose for containerized setup.
- **Python** (optional): For local development, install dependencies in `requirements.txt`.
- **ffmpeg** (optional): Required for audio format conversion. Optional if sticking to mp3.
### Installation
1. **Clone the Repository**:
```bash
git clone https://github.com/travisvn/openai-edge-tts.git
cd openai-edge-tts
```
2. **Environment Variables**: Create a `.env` file in the root directory with the following variables:
```
API_KEY=your_api_key_here
PORT=5050
DEFAULT_VOICE=en-US-AvaNeural
DEFAULT_RESPONSE_FORMAT=mp3
DEFAULT_SPEED=1.0
DEFAULT_LANGUAGE=en-US
REQUIRE_API_KEY=True
REMOVE_FILTER=False
EXPAND_API=True
DETAILED_ERROR_LOGGING=True
```
Or, copy the default `.env.example` with the following:
```bash
cp .env.example .env
```
3. **Run with Docker Compose** (recommended):
```bash
docker compose up --build
```
Run with `-d` to run docker compose in "detached mode", meaning it will run in the background and free up your terminal.
```bash
docker compose up -d
```
<details>
<summary>
#### Building Locally with FFmpeg using Docker Compose
</summary>
By default, `docker compose up --build` creates a minimal image _without_ `ffmpeg`. If you're building locally (after cloning this repository) and need `ffmpeg` for audio format conversions (beyond MP3), you can include it in the build.
This is controlled by the `INSTALL_FFMPEG_ARG` build argument. Set this environment variable to `true` in one of these ways:
1. **Prefixing the command:**
```bash
INSTALL_FFMPEG_ARG=true docker compose up --build
```
2. **Adding to your `.env` file:**
Add this line to the `.env` file in the project root:
```env
Excerpt of 16,932 characters
Read on GitHubTravis Van Nimwegen · United States
44
Would you bet a product on this? Bounded 0–100 and slow moving.
matched fp:aca103352050a723, topic:text-to-speech, topic:tts, desc:text-to-speech
matched fp:aca103352050a723, topic:llm, topic:gpt