mirror of
https://github.com/PR0M3TH3AN/Piper-TTS-Script.git
synced 2025-09-05 05:28:43 +00:00
Update
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user