forked from k2-fsa/icefall
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run decode.py in GitHub actions. (k2-fsa#356)
- Loading branch information
1 parent
cd460f7
commit bc284e8
Showing
19 changed files
with
434 additions
and
86 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
.github/scripts/compute-fbank-librispeech-test-clean-and-test-other.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This script computes fbank features for the test-clean and test-other datasets. | ||
# The computed features are saved to ~/tmp/fbank-libri and are | ||
# cached for later runs | ||
|
||
export PYTHONPATH=$PWD:$PYTHONPATH | ||
echo $PYTHONPATH | ||
|
||
mkdir ~/tmp/fbank-libri | ||
cd egs/librispeech/ASR | ||
mkdir -p data | ||
cd data | ||
[ ! -e fbank ] && ln -s ~/tmp/fbank-libri fbank | ||
cd .. | ||
./local/compute_fbank_librispeech.py | ||
ls -lh data/fbank/ |
23 changes: 23 additions & 0 deletions
23
.github/scripts/download-librispeech-test-clean-and-test-other-dataset.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This script downloads the test-clean and test-other datasets | ||
# of LibriSpeech and unzip them to the folder ~/tmp/download, | ||
# which is cached by GitHub actions for later runs. | ||
# | ||
# You will find directories ~/tmp/download/LibriSpeech after running | ||
# this script. | ||
|
||
mkdir ~/tmp/download | ||
cd egs/librispeech/ASR | ||
ln -s ~/tmp/download . | ||
cd download | ||
wget -q --no-check-certificate https://www.openslr.org/resources/12/test-clean.tar.gz | ||
tar xf test-clean.tar.gz | ||
rm test-clean.tar.gz | ||
|
||
wget -q --no-check-certificate https://www.openslr.org/resources/12/test-other.tar.gz | ||
tar xf test-other.tar.gz | ||
rm test-other.tar.gz | ||
pwd | ||
ls -lh | ||
ls -lh LibriSpeech |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This script installs kaldifeat into the directory ~/tmp/kaldifeat | ||
# which is cached by GitHub actions for later runs. | ||
|
||
mkdir -p ~/tmp | ||
cd ~/tmp | ||
git clone https://github.com/csukuangfj/kaldifeat | ||
cd kaldifeat | ||
mkdir build | ||
cd build | ||
cmake -DCMAKE_BUILD_TYPE=Release .. | ||
make -j2 _kaldifeat |
11 changes: 11 additions & 0 deletions
11
.github/scripts/prepare-librispeech-test-clean-and-test-other-manifests.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This script assumes that test-clean and test-other are downloaded | ||
# to egs/librispeech/ASR/download/LibriSpeech and generates manifest | ||
# files in egs/librispeech/ASR/data/manifests | ||
|
||
cd egs/librispeech/ASR | ||
[ ! -e download ] && ln -s ~/tmp/download . | ||
mkdir -p data/manifests | ||
lhotse prepare librispeech -j 2 -p test-clean -p test-other ./download/LibriSpeech data/manifests | ||
ls -lh data/manifests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.