-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheng-elan.sh
25 lines (22 loc) · 992 Bytes
/
eng-elan.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
#
# Set a number of environmental variables and locale-related settings needed
# for this recognizer to run as expected before calling the recognizer itself.
#
# It seems that recognizer processes invoked by ELAN don't inherit any regular
# environmental variables (like PATH), which makes it difficult to track down
# where both Python and ffmpeg(1) might be. These same processes also have
# their locale set to C. This implies a default ASCII file encoding, which
# causes some scripts to refuse to run (since many assume a more Unicode-
# friendly view of the world somewhere in their code).
# **
# ** Edit the following line to point to the directory in which 'ffmpeg' is
# ** found on this computer.
# **
export FFMPEG_DIR="/Users/chris/Unix"
export LC_ALL="en_US.UTF-8"
export PYTHONIOENCODING="utf-8"
export PATH="$PATH:$FFMPEG_DIR"
# Activate the virtual environment, then execute the main script.
# source ./venv-voxseg/bin/activate
exec python3 ./eng-elan-main.py