Kokoro-FastAPI-GPU
Kokoro-FastAPI-GPU
Docker-Anwendung from pureelectricity's Repository
Übersicht
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.
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.
Anforderungen
Nvidia Driver
Laufzeit-Argumente
- Web-UI
http://[IP]:[PORT:8880]/web- Netzwerk
bridge- Shell
bash- Privilegiert
- false
- Extra Params
--gpus all --restart=unless-stopped
Konfiguration der Vorlage
WebUI PortPorttcp
Port for the FastAPI server.
- Ziel
- 8880
- Standard
- 8880
- Wert
- 8880
Temp Files (Audio Output)Pathrw
Directory where generated audio files are saved. MUST be writable by UID 1001.
- Ziel
- /app/api/temp_files
- Standard
- /mnt/user/appdata/kokoro-tts/temp
NVIDIA_VISIBLE_DEVICESVariable
GPU UUID to pass to the container (or 'all').
- Standard
- all
- Wert
- all
NVIDIA_DRIVER_CAPABILITIESVariable
Nvidia driver capabilities.
- Standard
- all
- Wert
- all
Use GPUVariable
Explicitly enable GPU usage.
- Ziel
- USE_GPU
- Standard
- true
- Wert
- true
Device TypeVariable
Set inference device (gpu or cpu).
- Ziel
- DEVICE
- Standard
- gpu
- Wert
- gpu
Kategorien
Einzelheiten
Repository
ghcr.io/remsky/kokoro-fastapi-gpu:latestZuletzt aktualisiert2026-06-02
Erstmals gesehen2025-04-25
Führen Sie Kokoro-FastAPI-GPU auf Unraid aus.
Kokoro-FastAPI-GPU ist gelistet in Community Apps für Unraid OS. Erkunden Sie Unraid, um einen flexiblen Heimserver, ein NAS oder ein Heimlabor aufzubauen.