Kokoro-FastAPI-zh
Kokoro-FastAPI-zh
Application Docker from hsiang's Repository
Vue d'ensemble
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).
Arguments d'exécution
- Interface utilisateur Web
http://[IP]:[PORT:8880]/web- Réseau
bridge- Coquille
bash- Privilégié
- false
Configuration du modèle
WebUI PortPorttcp
Web/API exposed port
- Cible
- 8880
- Défaut
- 8880
- Valeur
- 8880
Models PathPathrw
Host path for model files
- Cible
- /app/api/src/models
- Défaut
- /mnt/user/appdata/kokoro-fastapi-zh/models
- Valeur
- /mnt/user/appdata/kokoro-fastapi-zh/models
Voices PathPathrw
Host path for voice .pt files
- Cible
- /app/api/src/voices
- Défaut
- /mnt/user/appdata/kokoro-fastapi-zh/voices
- Valeur
- /mnt/user/appdata/kokoro-fastapi-zh/voices
Python PathVariable
Python import path
- Cible
- PYTHONPATH
- Défaut
- /app:/app/api
- Valeur
- /app:/app/api
Python UnbufferedVariable
Enable unbuffered Python logs
- Cible
- PYTHONUNBUFFERED
- Défaut
- 1
- Valeur
- 1
Repo IDVariable
HuggingFace model repo
- Cible
- REPO_ID
- Défaut
- hexgrad/Kokoro-82M-v1.1-zh
- Valeur
- hexgrad/Kokoro-82M-v1.1-zh
Default VoiceVariable
Default voice name
- Cible
- DEFAULT_VOICE
- Défaut
- zf_001
- Valeur
- zf_094
Default Voice CodeVariable
Optional language code override. Set z to force zh pipeline.
- Cible
- DEFAULT_VOICE_CODE
- Défaut
- z
- Valeur
- z
Model FileVariable
Model path relative to /app/api/src/models
- Cible
- KOKORO_V1_FILE
- Défaut
- v1_1_zh/kokoro-v1_1-zh.pth
- Valeur
- v1_1_zh/kokoro-v1_1-zh.pth
Voices DirVariable
Voice directory in container
- Cible
- VOICES_DIR
- Défaut
- /app/api/src/voices/v1_1_zh
- Valeur
- /app/api/src/voices/v1_1_zh
API Log LevelVariable
API logging level
- Cible
- API_LOG_LEVEL
- Défaut
- DEBUG
- Valeur
- DEBUG
Use GPUVariable
CPU default=false. For NVIDIA GPU set true and switch Repository to *-gpu image.
- Cible
- USE_GPU
- Défaut
- false
- Valeur
- false
NVIDIA Visible DevicesVariable
Only needed for GPU mode
- Cible
- NVIDIA_VISIBLE_DEVICES
- Défaut
- all
- Valeur
- all
NVIDIA Driver CapsVariable
Only needed for GPU mode
- Cible
- NVIDIA_DRIVER_CAPABILITIES
- Défaut
- compute,utility
- Valeur
- compute,utility
Catégories
Détails
Référentiel
ghcr.io/hsiang-han/kokoro-fastapi-zh-cpu:latestRegistre
Dernière mise à jour2026-05-31
Première vue2026-03-11
Exécutez Kokoro-FastAPI-zh sur Unraid.
Kokoro-FastAPI-zh est listé dans Community Apps pour Unraid OS. Explorez Unraid pour créer un serveur domestique flexible, un NAS ou un laboratoire domestique.