# Kokoro-FastAPI---CPU

Kokoro-FastAPI---CPU is a self-hosted ai app. Dockerized FastAPI wrapper for Kokoro-82M text-to-speech model w/CPU ONNX and NVIDIA GPU PyTorch support, handling, and auto-stitching. It is open source and self-hosted, installable on Unraid and Umbrel.

Canonical page: https://ourlocalhost.com/app/2964/kokoro-fastapi-cpu

## Description

Dockerized FastAPI wrapper for Kokoro-82M text-to-speech model w/CPU ONNX and NVIDIA GPU PyTorch support, handling, and auto-stitching. This is a version meant for running on CPUs. It is not recommended to run this on a CPU unless you have a very powerful CPU, as it will be slow. If you have a GPU, please use the GPU version of this container.

## Platform availability

Available on 2 of 10 platforms: Unraid, Umbrel.

## Health score

72/100 (Good), based on 4 of 4 factors.
- Maintained: 100 (last commit 17 days ago)
- Popular: 75 (5,633 GitHub stars)
- Easy to install: 45 (2 install platforms, install notes, Docker image)
- Light to run: 30 (4 GB minimum RAM)

## Links

- GitHub: https://github.com/remsky/Kokoro-FastAPI
- Unraid: https://ca.unraid.net/apps/kokoro-fastapi-cpu-1hwuqe90f7eoyl?q=Kokoro-FastAPI---CPU
- Umbrel: https://apps.umbrel.com/app/kokoro

## Common questions

### Will the CPU-only build be fast enough for normal use?

It is not recommended for CPUs unless the CPU is very powerful, because it can be slow. If you have a GPU, use the GPU version instead.

### Why can another container on the same Docker network not reach the service at localhost?

Try the host machine’s IP address from within the Docker network. If that still fails, check the expected port, whether the containers can see the host, and whether traffic filtering is blocking it.

### What should I do if the Unraid app template fails?

If the Unraid app template does not work, a user found success by starting it with Docker run or Docker Compose instead.

---
Source: Our Local Host (https://ourlocalhost.com/app/2964/kokoro-fastapi-cpu), the self-hosted and open-source app directory.
