Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Support] Kokoro-FastAPI-zh (OpenAI-compatible TTS API based on Kokoro-82M-v1.1-zh)

Featured Replies

What it is

Template details

  • App name: Kokoro-FastAPI-zh

  • Template URL:
    https://raw.githubusercontent.com/hsiang-han/unraid_templates/main/templates/kokoro-fastapi-zh.xml

  • Icon URL:
    https://raw.githubusercontent.com/hsiang-han/unraid_templates/main/assets/unraid-icon.png

  • Project URL:
    https://github.com/hsiang-han/Kokoro-FastAPI-zh

  • Support URL:
    https://github.com/hsiang-han/Kokoro-FastAPI-zh/issues

Container image strategy

  • Default repository (CPU):
    ghcr.io/hsiang-han/kokoro-fastapi-zh-cpu:latest

  • Optional NVIDIA GPU mode:

    1. Change Repository to
      ghcr.io/hsiang-han/kokoro-fastapi-zh-gpu:latest

    2. Set USE_GPU=true

    3. Add Extra Parameters: --gpus=all --runtime=nvidia

Default mappings / settings

  • Port: 8880

  • Host paths:

    • /mnt/user/appdata/kokoro-fastapi-zh/models -> /app/api/src/models

    • /mnt/user/appdata/kokoro-fastapi-zh/voices -> /app/api/src/voices

  • API docs: http://[IP]:[PORT:8880]/docs

  • Web UI: http://[IP]:[PORT:8880]/web

Edited by hsiang

  • 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 directories

mkdir -p /mnt/user/appdata/kokoro-fastapi-zh/models/v1_1_zh

mkdir -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 permissions

chmod -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 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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.