summaryrefslogtreecommitdiffstats
path: root/roles/prerec/templates/run-aeneas.sh
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2023-09-13 08:58:06 -0400
committerSacha Chua <sacha@sachachua.com>2023-09-13 08:58:24 -0400
commit077112b718eb29aecf331b1e703e7e90d8538e6c (patch)
tree5eab58517501dce8c79101bb7740c5000c506511 /roles/prerec/templates/run-aeneas.sh
parent366d6aec267f543f9a7b928778a09b80852346f3 (diff)
downloademacsconf-ansible-077112b718eb29aecf331b1e703e7e90d8538e6c.tar.xz
emacsconf-ansible-077112b718eb29aecf331b1e703e7e90d8538e6c.zip
add some more scripts, change 2022 to emacsconf_year
Diffstat (limited to 'roles/prerec/templates/run-aeneas.sh')
-rwxr-xr-xroles/prerec/templates/run-aeneas.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/prerec/templates/run-aeneas.sh b/roles/prerec/templates/run-aeneas.sh
index 6f40134..8246c85 100755
--- a/roles/prerec/templates/run-aeneas.sh
+++ b/roles/prerec/templates/run-aeneas.sh
@@ -3,7 +3,7 @@
# {{ ansible_managed }}
#
AUDIO=$(ls *.opus *.ogg | head -n1)
-BASE=$(echo $AUDIO | perl -pe 's/^(emacsconf-2022-.*?--.*?--.*?)--.*/$1/')
+BASE=$(echo $AUDIO | perl -pe 's/^(emacsconf-{{ emacsconf_year }}-.*?--.*?--.*?)--.*/$1/')
echo $AUDIO
echo $BASE
if [ ! -f $BASE--whisper.vtt ]; then
@@ -11,4 +11,4 @@ if [ ! -f $BASE--whisper.vtt ]; then
fi
python3 -m aeneas.tools.execute_task $AUDIO *.txt "task_language=eng|os_task_file_format=vtt|is_text_type=plain" ${BASE}--aeneas.vtt
cp ${BASE}--aeneas.vtt ${BASE}--main.vtt
-/data/emacsconf/2022/scripts/upload.sh ${BASE}--main.vtt
+/data/emacsconf/{{ emacsconf_year }}/scripts/upload.sh ${BASE}--main.vtt