Alternatives to Kokoro-FastAPI

A Dockerized, OpenAI-compatible server for running the Kokoro-82M text-to-speech model on your own hardware. The listings below can replace it for an important use case. Each note says what changes if you switch.

The original

Replacements

Listings that take over the same core job as Kokoro-FastAPI.

  • Speaches

    A self-hosted, OpenAI API-compatible server for local speech-to-text, translation and text-to-speech models.

    Speaches is an MIT-licensed self-hosted OpenAI-compatible server that adds speech-to-text and streaming transcription, and serves both Kokoro and Piper voices through Docker.

  • Kokoro

    Small, fast open-weight text-to-speech model you can run locally.

    Kokoro is the underlying Apache-2.0 model used directly as a Python library, so moving drops the Docker server, OpenAI-compatible endpoint and caption timestamps.

  • AllTalk TTS

    A local text-to-speech server with voice cloning, model finetuning, a settings page and a JSON API.

    AllTalk TTS is an AGPL-3.0 local server with a JSON API, voice cloning and finetuning on Windows and Linux, rather than an OpenAI-compatible endpoint.

  • Piper

    A fast neural text-to-speech engine that runs locally, even on modest hardware like a Raspberry Pi.

    Piper is a GPL-3.0 local engine fast enough for a Raspberry Pi, used from the command line, Python or a C library instead of an HTTP server.

  • MeloTTS

    An open-source multilingual text-to-speech engine from MIT and MyShell.ai with a command line and web UI.

    MeloTTS is an MIT-licensed multilingual engine with a command line, web UI and Dockerfile, offering several English accents and five other languages, though development has slowed.

  • Cartesia

    An AI voice platform with an API for real-time text-to-speech, speech-to-text and voice agents.

    PaidProprietaryWeb

    Cartesia is a paid cloud API for real-time text-to-speech, transcription and voice agents, replacing your own hardware with a hosted service and no local option.

Similar software

Related functionality, not a direct replacement.