-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.sh
executable file
·41 lines (26 loc) · 1.21 KB
/
setup.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
# echo 'export KALDI_ROOT=~/proj/kaldi' >> ~/.bashrc
# echo 'export VOCO_ROOT=~/proj/voco' >> ~/.bashrc
# echo 'export VOCO_DATA=~/proj/voco/data' >> ~/.bashrc
# . ~/.bashrc
# cat | echo $VOCO_ROOT
# rm $VOCO_ROOT/training/steps
# rm $VOCO_ROOT/training/utils
# rm -R $VOCO_ROOT/data
# rm $VOCO_ROOT/training/data
# rm $VOCO_ROOT/main/decode/model
# rm $VOCO_ROOT/main/decode/data
# ln -s $KALDI_ROOT/egs/wsj/s5/steps $VOCO_ROOT/training/steps
# ln -s $KALDI_ROOT/egs/wsj/s5/utils $VOCO_ROOT/training/utils
# mkdir -p $VOCO_ROOT/data/data
# mkdir -p $VOCO_ROOT/data/staging/audio_records
# mkdir -p $VOCO_ROOT/data/staging/audio_data
# ln -s $VOCO_ROOT/data/data $VOCO_ROOT/training/data
# ln -s $VOCO_ROOT/training/exp/tri1_ali $VOCO_ROOT/main/decode/model
# ln -s $VOCO_ROOT/data/staging $VOCO_ROOT/main/decode/data
# curl https://raw.githubusercontent.com/VoxForge/develop/master/lexicon/VoxForgeDict.txt > $VOCO_ROOT/data_creation/VoxForgeDict
chmod +x 01_create_recording_list.py 02_record.py 03_create_lang_files.py 04_create_test_train.py
# sudo apt install keynav
sudo apt install libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0 ffmpeg libav-tools
pip install pyaudio
pip install numpy