Kokoro-FastAPI-zh

Kokoro-FastAPI-zh

Aplicación Docker from hsiang's Repository

Visión general

OpenAI-compatible TTS API based on Kokoro-82M-v1.1-zh. Default uses CPU image. For GPU: change Repository to ghcr.io/hsiang-han/kokoro-fastapi-zh-gpu:latest, set USE_GPU=true, and add Extra Parameters: --gpus=all --runtime=nvidia (do not set as default on CPU hosts).

Argumentos en tiempo de ejecución

Interfaz web
http://[IP]:[PORT:8880]/web
Red
bridge
Concha
bash
Privilegiado
false

Configuración de plantillas

WebUI PortPorttcp

Web/API exposed port

Objetivo
8880
Por defecto
8880
Valor
8880
Models PathPathrw

Host path for model files

Objetivo
/app/api/src/models
Por defecto
/mnt/user/appdata/kokoro-fastapi-zh/models
Valor
/mnt/user/appdata/kokoro-fastapi-zh/models
Voices PathPathrw

Host path for voice .pt files

Objetivo
/app/api/src/voices
Por defecto
/mnt/user/appdata/kokoro-fastapi-zh/voices
Valor
/mnt/user/appdata/kokoro-fastapi-zh/voices
Python PathVariable

Python import path

Objetivo
PYTHONPATH
Por defecto
/app:/app/api
Valor
/app:/app/api
Python UnbufferedVariable

Enable unbuffered Python logs

Objetivo
PYTHONUNBUFFERED
Por defecto
1
Valor
1
Repo IDVariable

HuggingFace model repo

Objetivo
REPO_ID
Por defecto
hexgrad/Kokoro-82M-v1.1-zh
Valor
hexgrad/Kokoro-82M-v1.1-zh
Default VoiceVariable

Default voice name

Objetivo
DEFAULT_VOICE
Por defecto
zf_001
Valor
zf_094
Default Voice CodeVariable

Optional language code override. Set z to force zh pipeline.

Objetivo
DEFAULT_VOICE_CODE
Por defecto
z
Valor
z
Model FileVariable

Model path relative to /app/api/src/models

Objetivo
KOKORO_V1_FILE
Por defecto
v1_1_zh/kokoro-v1_1-zh.pth
Valor
v1_1_zh/kokoro-v1_1-zh.pth
Voices DirVariable

Voice directory in container

Objetivo
VOICES_DIR
Por defecto
/app/api/src/voices/v1_1_zh
Valor
/app/api/src/voices/v1_1_zh
API Log LevelVariable

API logging level

Objetivo
API_LOG_LEVEL
Por defecto
DEBUG
Valor
DEBUG
Use GPUVariable

CPU default=false. For NVIDIA GPU set true and switch Repository to *-gpu image.

Objetivo
USE_GPU
Por defecto
false
Valor
false
NVIDIA Visible DevicesVariable

Only needed for GPU mode

Objetivo
NVIDIA_VISIBLE_DEVICES
Por defecto
all
Valor
all
NVIDIA Driver CapsVariable

Only needed for GPU mode

Objetivo
NVIDIA_DRIVER_CAPABILITIES
Por defecto
compute,utility
Valor
compute,utility

Detalles

Repositorio
ghcr.io/hsiang-han/kokoro-fastapi-zh-cpu:latest
Última actualización2026-06-02
Visto por primera vez2026-03-11

Ejecute Kokoro-FastAPI-zh en Unraid.

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