Kokoro-FastAPI-GPU

Kokoro-FastAPI-GPU

Application Docker from pureelectricity's Repository

Vue d'ensemble

Kokoro-FastAPI is a Dockerized FastAPI wrapper for the Kokoro-82M text-to-speech model, optimized for speed and quality.

Features:
- High-quality Japanese and English text-to-speech.
- Accelerated inference using NVIDIA GPUs.
- OpenAI-compatible speech endpoint.

Home Assistant Integration:
This container is fully compatible with the OpenAI TTS integration in Home Assistant. You can generate local, OpenAI-level quality voice audio using your own GPU.
1. Install the OpenAI TTS integration (via HACS).
2. Set the "API Key" to any random text (e.g., "123").
3. Set the "Target URL" to: http://[IP]:8880/v1

Requirements:
- Requires the Nvidia Driver plugin.
- This container runs as internal user 1001. Ensure your "Temp Files" output directory is writable by this user.
- The WebUI is located at /web.

Exigences

Nvidia Driver

Arguments d'exécution

Interface utilisateur Web
http://[IP]:[PORT:8880]/web
Réseau
bridge
Coquille
bash
Privilégié
false
Paramètres supplémentaires
--gpus all --restart=unless-stopped

Configuration du modèle

WebUI PortPorttcp

Port for the FastAPI server.

Cible
8880
Défaut
8880
Valeur
8880
Temp Files (Audio Output)Pathrw

Directory where generated audio files are saved. MUST be writable by UID 1001.

Cible
/app/api/temp_files
Défaut
/mnt/user/appdata/kokoro-tts/temp
NVIDIA_VISIBLE_DEVICESVariable

GPU UUID to pass to the container (or 'all').

Défaut
all
Valeur
all
NVIDIA_DRIVER_CAPABILITIESVariable

Nvidia driver capabilities.

Défaut
all
Valeur
all
Use GPUVariable

Explicitly enable GPU usage.

Cible
USE_GPU
Défaut
true
Valeur
true
Device TypeVariable

Set inference device (gpu or cpu).

Cible
DEVICE
Défaut
gpu
Valeur
gpu

Détails

Référentiel
ghcr.io/remsky/kokoro-fastapi-gpu:latest
Dernière mise à jour2026-06-01
Première vue2025-04-25

Exécutez Kokoro-FastAPI-GPU sur Unraid.

Kokoro-FastAPI-GPU est listé dans Community Apps pour Unraid OS. Explorez Unraid pour créer un serveur domestique flexible, un NAS ou un laboratoire domestique.