piper should be installed as a bin

This commit is contained in:
ken_fallon committed 2026-10-15 15:39:28 +02:00
1 parent a704dbd687
commit 7008ddb2b5
1 file changed
+3 -10
+3 -10
View File
@@ -18,7 +18,6 @@ outro_flac="${processing_dir}/outro.flac" # The outro edited media
outro_srt="${processing_dir}/outro.srt" # The outro subtitle file
intro_srt="${processing_dir}/intro.srt" # The intro subtitle template file
piper_bin="/opt/bin/piper/piper/piper" # The location of the text to speech engine
piper_voice="/opt/bin/piper/piper/piper-voices/en/en_US/lessac/medium/en_US-lessac-medium.onnx"
working_dir_bypass="false"
@@ -92,7 +91,7 @@ function program_checks() {
done
}
is_installed audio2image.bash awk base64 cat csvtojson curl date eval exiftool extract_images ffprobe ffmpeg file find fix_tags grep head jq kate magick mediainfo mv ${piper_bin} realpath remove-image.pl rsync seamonkey sed sed sort sponge ssh touch touch wget hpr-check-ccdn-links xmlstarlet
is_installed audio2image.bash awk base64 cat csvtojson curl date eval exiftool extract_images ffprobe ffmpeg file find fix_tags grep head jq kate magick mediainfo mv piper realpath remove-image.pl rsync seamonkey sed sed sort sponge ssh touch touch wget hpr-check-ccdn-links xmlstarlet
for arg in $*
do
@@ -480,12 +479,6 @@ function check_variable_is_correct() {
echo_error "The \"outro_srt\" variable is missing or file \"${outro_srt}\" does not exist."
fi
;;
piper_bin)
if [ -z "${piper_bin}" ]
then
echo_error "The \"ep_num\" variable is missing."
fi
;;
piper_voice)
if [ -z "${ep_num}" ]
then
@@ -1415,11 +1408,11 @@ function create_tts_summary() {
return
fi
check_variable_is_correct working_dir duration synopsis piper_bin piper_voice
check_variable_is_correct working_dir duration synopsis piper_voice
echo_debug "Converting text synopsis \"${synopsis}\" to speech."
echo "${synopsis}" | "${piper_bin}" --model "${piper_voice}" --output_file "${episode_tts_wav}"
echo "${synopsis}" | piper --model "${piper_voice}" --output_file "${episode_tts_wav}"
check_variable_is_correct episode_tts_wav