From dd1e172f2ccea38ef736d149b10c9a707fac979e Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Sat, 9 Aug 2025 22:00:11 -0400 Subject: [PATCH] Update --- make_audiobook.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/make_audiobook.sh b/make_audiobook.sh index e19fb54..a07a9be 100755 --- a/make_audiobook.sh +++ b/make_audiobook.sh @@ -12,14 +12,13 @@ set -euo pipefail # ----------------------- # 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). -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_FILE="${MODEL_DIR}/${MODEL_NAME}.onnx" 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_GB/cori/high/en_GB-cori-high.onnx" -MODEL_JSON_URL="https://huggingface.co/rhasspy/piper-voices/resolve/main/en/en_GB/cori/high/en_GB-cori-high.onnx.json" +MODEL_ONNX_URL="https://huggingface.co/rhasspy/piper-voices/resolve/main/en/en_US/hfc_male/medium/en_US-hfc_male-medium.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" # Piper synthesis knobs (tune to taste) LENGTH_SCALE="1.0" # >1.0 = slower, <1.0 = faster