March 2Mar 2 What it isOpenAI-compatible TTS API based on hexgrad/Kokoro-82M-v1.1-zh (Chinese optimized TTS model hexgrad/Kokoro-82M-v1.1-zh · Hugging Face )Exposes:/v1/audio/speechdocs (Swagger)web (web UI)Template detailsApp name: Kokoro-FastAPI-zhTemplate URL:https://raw.githubusercontent.com/hsiang-han/unraid_templates/main/templates/kokoro-fastapi-zh.xmlIcon URL:https://raw.githubusercontent.com/hsiang-han/unraid_templates/main/assets/unraid-icon.pngProject URL:https://github.com/hsiang-han/Kokoro-FastAPI-zhSupport URL:https://github.com/hsiang-han/Kokoro-FastAPI-zh/issuesContainer image strategyDefault repository (CPU):ghcr.io/hsiang-han/kokoro-fastapi-zh-cpu:latestOptional NVIDIA GPU mode:Change Repository toghcr.io/hsiang-han/kokoro-fastapi-zh-gpu:latestSet USE_GPU=trueAdd Extra Parameters: --gpus=all --runtime=nvidiaDefault mappings / settingsPort: 8880Host paths:/mnt/user/appdata/kokoro-fastapi-zh/models -> /app/api/src/models/mnt/user/appdata/kokoro-fastapi-zh/voices -> /app/api/src/voicesAPI docs: http://[IP]:[PORT:8880]/docsWeb UI: http://[IP]:[PORT:8880]/web Edited March 3Mar 3 by hsiang
March 2Mar 2 Author The container runs as a non-root user appuser (UID 1000). If the mounted host directories are not owned by UID 1000, the container cannot write to them, and you may see an error like:PermissionError: [Errno 13] Permission denied: 'api/src/models/v1_1_zh'Fix (run once in the Unraid terminal before first deployment):```# 1. Create mount directoriesmkdir -p /mnt/user/appdata/kokoro-fastapi-zh/models/v1_1_zhmkdir -p /mnt/user/appdata/kokoro-fastapi-zh/voices/v1_1_zh# 2. Set owner to UID 1000 (container appuser)chown -R 1000:1000 /mnt/user/appdata/kokoro-fastapi-zh# 3. Set read/write permissionschmod -R 775 /mnt/user/appdata/kokoro-fastapi-zh```Note: The Unraid terminal runs as root by default, so you can execute these commands directly. This is only required once before the first deployment. Edited March 2Mar 2 by Monkey_66
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.