-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvoxseg-elan.bat
24 lines (21 loc) · 995 Bytes
/
voxseg-elan.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
::!/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.
:: **
SET FFMPEG_DIR=""
SET LC_ALL="en_US.UTF-8"
SET PYTHONIOENCODING="utf-8"
SET PATH="%PATH%:%FFMPEG_DIR%"
:: Activate the virtual environment, then execute the main script.
".\venv-voxseg\Scripts\python" ".\voxseg-elan.py" runserver