-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheng-elan.bat
25 lines (22 loc) · 1.18 KB
/
eng-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
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.
:: **
SET FFMPEG_DIR="C:\ProgramData\chocolatey\lib"
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.
::"C:\Python39\python" "C:\Program Files\ELAN_6.4\app\extensions\eng-elan-main\eng-elan-main.py" runserver
"C:\Program Files\ELAN_6.4\app\extensions\ASR_English\venv-eng\Scripts\python.exe" "C:\Program Files\ELAN_6.4\app\extensions\ASR_English\eng-elan.py" runserver