Skip to content

Instantly share code, notes, and snippets.

@vitorcalvi
Created December 11, 2025 08:54
Show Gist options
  • Select an option

  • Save vitorcalvi/417668831737723835b201b76b48ef3b to your computer and use it in GitHub Desktop.

Select an option

Save vitorcalvi/417668831737723835b201b76b48ef3b to your computer and use it in GitHub Desktop.
Kokoro-FastAPI Voice generator
#!/usr/bin/env bash
# Simple one-shot runner for Kokoro-FastAPI on macOS
set -e
# 1) Go to project folder
cd "${HOME}/Desktop/Kokoro-FastAPI"
# 2) (Optional) Create and use a virtualenv
if [ ! -d ".venv" ]; then
python3 -m venv .venv
fi
# shellcheck disable=SC1091
source .venv/bin/activate
# 3) Make the GPU start script executable and run it
chmod +x start-gpu_mac.sh
./start-gpu_mac.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment