This commit is contained in:
thePR0M3TH3AN
2025-08-09 22:00:11 -04:00
parent bca4d14480
commit dd1e172f2c

View File

@@ -12,14 +12,13 @@ set -euo pipefail
# ----------------------- # -----------------------
# Piper model (female by default). Set MODEL_FILE to a local .onnx if you already downloaded one. # Piper model (female by default). Set MODEL_FILE to a local .onnx if you already downloaded one.
# Otherwise, the script will try to download the URLs below (you can swap them with your preferred voice). # Otherwise, the script will try to download the URLs below (you can swap them with your preferred voice).
MODEL_NAME="en_GB-cori-high" # Example: UK English, female, high quality MODEL_NAME="en_US-hfc_male-medium"
MODEL_DIR="${HOME}/.local/share/piper/voices" MODEL_DIR="${HOME}/.local/share/piper/voices"
MODEL_FILE="${MODEL_DIR}/${MODEL_NAME}.onnx" MODEL_FILE="${MODEL_DIR}/${MODEL_NAME}.onnx"
MODEL_JSON="${MODEL_FILE}.json" MODEL_JSON="${MODEL_FILE}.json"
# If MODEL_FILE doesn't exist, try to fetch from these URLs: MODEL_ONNX_URL="https://huggingface.co/rhasspy/piper-voices/resolve/main/en/en_US/hfc_male/medium/en_US-hfc_male-medium.onnx"
MODEL_ONNX_URL="https://huggingface.co/rhasspy/piper-voices/resolve/main/en/en_GB/cori/high/en_GB-cori-high.onnx" MODEL_JSON_URL="https://huggingface.co/rhasspy/piper-voices/resolve/main/en/en_US/hfc_male/medium/en_US-hfc_male-medium.onnx.json"
MODEL_JSON_URL="https://huggingface.co/rhasspy/piper-voices/resolve/main/en/en_GB/cori/high/en_GB-cori-high.onnx.json"
# Piper synthesis knobs (tune to taste) # Piper synthesis knobs (tune to taste)
LENGTH_SCALE="1.0" # >1.0 = slower, <1.0 = faster LENGTH_SCALE="1.0" # >1.0 = slower, <1.0 = faster