Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklambourne committed Aug 28, 2021
1 parent b4359ac commit e40bba7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,8 @@ RUN git clone --depth=1 https://github.com/CoEDL/elpis.git

WORKDIR /elpis
RUN pip install poetry \
&& poetry env use /venv/bin/python3 \
&& poetry run pip install --upgrade pip \
&& poetry config virtualenvs.create false --local \
&& poetry config virtualenvs.create true --local \
&& poetry install

WORKDIR /
Expand Down
3 changes: 0 additions & 3 deletions elpis/engines/kaldi/inference/gmm-decode/7_ctm_textgrid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@

export PATH=$PATH:/kaldi/src/online2bin

# Activate Python 3.8.2 virtual environment
source /venv/bin/activate

# Manipulate the wav.scp file in the first (and only) split
line=$(head -n 1 ./data/infer/spk2utt)
utt=` echo ${line} | cut -d ' ' -f 2`
Expand Down
4 changes: 1 addition & 3 deletions elpis/engines/kaldi/inference/gmm-decode/8_textgrid_elan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@

export PATH=$PATH:/kaldi/src/online2bin

source /venv/bin/activate

echo "${recid} ${audio}" > ./data/infer/split1/1/wav.scp

echo "==== Converting Textgrid to ELAN ===="
# python /kaldi-helpers/kaldi_helpers/output_scripts/textgrid_to_elan.py \
python /elpis/elpis/engines/common/output/textgrid_to_elan.py \
"${POETRY_PATH}/bin/python" /elpis/elpis/engines/common/output/textgrid_to_elan.py \
--tg data/infer/utterance-0.TextGrid \
--wav data/infer/wav.scp \
--outfile data/infer/utterance-0.eaf

0 comments on commit e40bba7

Please sign in to comment.