blob: a9e27f470cb38bdbc80efb5c55cdd582e05cc3ac (
plain) (
tree)
|
|
#!/usr/bin/bash
#
# {{ ansible_managed }}
#
AUDIO=$(ls *.opus *.ogg | head -n1)
BASE=$(echo $AUDIO | perl -pe 's/^(emacsconf-{{ emacsconf_year }}-.*?--.*?--.*?)--.*/$1/')
echo $AUDIO
echo $BASE
if [ ! -f $BASE--whisper.vtt ]; then
cp ${BASE}--main.vtt ${BASE}--whisper.vtt
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/admin/{{ emacsconf_year }}/scripts/upload.sh ${BASE}--main.vtt
|