Kokoro-FastAPI-GPU

Kokoro-FastAPI-GPU

Aplicación Docker from pureelectricity's Repository

Visión general

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.

Requisitos

Nvidia Driver

Argumentos en tiempo de ejecución

Interfaz web
http://[IP]:[PORT:8880]/web
Red
bridge
Concha
bash
Privilegiado
false
Parámetros adicionales
--gpus all --restart=unless-stopped

Configuración de plantillas

WebUI PortPorttcp

Port for the FastAPI server.

Objetivo
8880
Por defecto
8880
Valor
8880
Temp Files (Audio Output)Pathrw

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

Objetivo
/app/api/temp_files
Por defecto
/mnt/user/appdata/kokoro-tts/temp
NVIDIA_VISIBLE_DEVICESVariable

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

Por defecto
all
Valor
all
NVIDIA_DRIVER_CAPABILITIESVariable

Nvidia driver capabilities.

Por defecto
all
Valor
all
Use GPUVariable

Explicitly enable GPU usage.

Objetivo
USE_GPU
Por defecto
true
Valor
true
Device TypeVariable

Set inference device (gpu or cpu).

Objetivo
DEVICE
Por defecto
gpu
Valor
gpu

Detalles

Repositorio
ghcr.io/remsky/kokoro-fastapi-gpu:latest
Última actualización2026-05-31
Visto por primera vez2025-04-25

Ejecute Kokoro-FastAPI-GPU en Unraid.

Kokoro-FastAPI-GPU se encuentra en Community Apps para Unraid OS. Explore Unraid para crear un servidor doméstico flexible, un NAS o un laboratorio doméstico.