- It is working on Mac(Catalina 10.15.7) and Ubuntu(14.04).
- To run this program, kaldi should be installed on your computer.
-
Install Kaldi
-
Type below in command line.
$ git clone https://github.com/kaldi-asr/kaldi.git kaldi --origin upstream $ cd kaldi $ git pull
-
Read INSTALL and follow the direction written there.
-
-
Install Packages
-
Install list: Sox, coreutils.
-
On mac
$ brew install sox $ brew install coreutils
-
-
Navigate to 'Korean_ASR' directory.
-
Open run_asr.sh with any text editor to specify user path of kaldi directory.
- Change 'kaldi' name variable. (initial setting: kaldi=/home/kaldi)
- Before running the main script, path.sh should be removed in version 1.2 but it should not be removed in version 1.2.1. If you removed the path.sh by mistake, then download it again.
-
Run the code by selecting krs model.
-
krs(korean readspeech) model is already provided.
-
example:
$ sh run_asr.sh (language model) $ sh run_asr.sh krs
-
-
You may see the recording status on the screen. Speak any sentence and stop recording by pressing Control + C.
-
Speech recognition process will be automatically initiated and a text result will be printed on the screen.
-
You can decode with your own trained model by adding it into ./models/diy directory if you prepared four files(final.mdl, final.mat, HCLG.fst, and words.txt) trained by train_tanh_fast.sh(refer to the kadli_recipe/k1 script in my github) you are able to collect those files. Once you located above files to the ./models/diy folder, type as below.
$ sh run_asr.sh diy
Please report bugs or provide any recommendation to us through the following email addresses.
- Hyungwon Yang / hyung8758@gmail.com
- 2016.10.11
- NAMZ & EMCS labs
- v.1.0(10/12/16): Two language models are available: krs and mz.
- v.1.1(11/27/16): Minor updates for code optimization.
- v.1.2(07/09/17): Remove some unimportant files. Implementing model is possible. Fix minor bugs.
- v.1.2.1(09/26/18): some update news were not synced. so the previous news are now synced. change readme and run_asr.sh.
- v.1.3(11/13/20): diy option bug fixed. You may now use not only dnn model type but various model types. see models/README.md.