From 513d093523da6761bb3bd1dec12ef6b2094276f1 Mon Sep 17 00:00:00 2001 From: ehpersonal38 <103586016+ehpersonal38@users.noreply.github.com> Date: Mon, 10 Apr 2023 16:38:46 -0400 Subject: [PATCH] fix sox spectrogram title on non ASCII names --- scripts/extract_new_birdsounds.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/extract_new_birdsounds.sh b/scripts/extract_new_birdsounds.sh index 60b9bb3..0988f91 100755 --- a/scripts/extract_new_birdsounds.sh +++ b/scripts/extract_new_birdsounds.sh @@ -130,7 +130,7 @@ for h in "${SCAN_DIRS[@]}";do else # If it's not, run the SOX command without the "-r" argument sox -V1 "${NEWSPECIES_BYDATE}/${NEWFILE}" -n remix 1 rate 24k spectrogram \ - -t "${COMMON_NAME}" \ + -t "$(echo "${COMMON_NAME}" | iconv -f utf8 -t ascii//TRANSLIT)" \ -c "${NEWSPECIES_BYDATE//$HOME\/}/${NEWFILE}" \ -o "${NEWSPECIES_BYDATE}/${NEWFILE}.png" fi