summaryrefslogtreecommitdiffstats
path: root/roles/prerec/templates/run-aeneas.sh
diff options
context:
space:
mode:
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