Commit 4b621801 authored by Cassio Batista's avatar Cassio Batista 🐢

htk util dir included; README modified

parent 0b2d827b
# HTK - tutorial para treino de modelo acústico
![](https://gitlab.com/speechufpa/model-scripts/raw/master/cassio-htk/doc/overview.jpg)
### 3.0 FalaBrasil Environment Tree
```
..
/ \
( . . )
( . . . .)
(. \ \. / / . )
( .\.\/ / .)
-- | | --
| |
| |
```
### 3.1 Data Preparation (fb\_01\_dataprep.sh)
```
HLEd HTK Label Editor
-l '*' dir to store label file (MLF header)
-d etc/dictionary.dic load phonetic dict
-i etc/phones0.mlf (or phones_sp.mlf) output MLF transcription to file
$MYHTKPROJ/util/mkphones.led (or mkphones_sp.led) command editor file
$MYHTKPROJ/etc/words.mlf label file
```
```
HCopy "copy" an in file to an encoded out file
-T 1 set trace flag
-C conf/edaz.conf set config file
$MYHTKPROJ/wav/train/file.wav input audio file
$MYHTKPROJ/wav/train/file.mfc output parameterized audio file
```
3.1.4: Step 4 - Creating the Transcription Files | 3.1.5: Step 5 - Coding the Data
:-----------------------------------------------:|:------------------------------:
![](https://gitlab.com/speechufpa/model-scripts/raw/master/cassio-htk/doc/dataprep_1.jpg) | ![](https://gitlab.com/speechufpa/model-scripts/raw/master/cassio-htk/doc/dataprep_2.jpg)
### 3.2 Creating Monophone HMMs (fb\_02\_create\_monoph\_hmm.sh)
#### 3.2.1 Step 6 - Creating Flat Start Monophones
```
HCompV
-C conf/hcomp.conf
-f 0.01
-m
-S etc/train\_mfc.scp
-M model/flat\_start
model/flat\_start/proto
```
3.2.1: Step 6 - Creating Flat Start Monophones
:-----------------------------------------------:
![](https://gitlab.com/speechufpa/model-scripts/raw/master/cassio-htk/doc/flat_start_monoph.jpg)
out in dir in in
HHEd -w model/flat\_start/hmms.mlf -d model/flat\_start util/concatenade.hed etc/hmmlist.txt
in in in in out dir in
HERest -I etc/phones0.mlf -t $PRUNING -S etc/train\_mfc.scp -H model/flat\_start/macros -H model/flat\_start/hmmdefs -M model/mono\_0 etc/hmmlist.txt
#### 3.2.2 Step 7 - Fixing the Silence Models
in in out_dir in in
HHEd -H /model/mono\_sp\_0/macros -H /model/mono\_sp\_0/hmmdefs -M /model/mono\_sp\_1 /util/sil.hed /etc/hmm\_sp.list
in in in in out_dir in
HERest -t $PRUNING -I /etc/phones\_sp.mlf -S /etc/train\_mfc.scp -H /model/mono\_sp\_$((i-1))/macros -H /model/mono\_sp\_$((i-1))/hmmdefs -M /model/mono\_sp\_${i} /etc/hmm\_sp.list
#### 3.2.3 Step 8 - Realigning the Training Data
in out in in in in in
HVite -o SWT -b sil -a -y lab -m -t 250.0 -I /etc/words.mlf -i /etc/aligned.mlf -H /model/mono\_realign\_0/macros -H /model/mono\_realign\_0/hmmdefs -S /etc/train\_mfc.scp /etc/dictionary.dic /etc/hmm\_sp.list
in in in in out_dir in
HERest -t $PRUNING -I etc/aligned.mlf -S etc/train\_mfc.scp -H model/mono\_realign\_$((i-1))/macros -H model/mono\_realign\_$((i-1))/hmmdefs -M model/mono\_realign\_${i} etc/hmm\_sp.list
### 3.3 Creating Tied-State Triphones
Script: __fb\_03\_create\_triph\_hmm.sh__
out in in in
HLEd -l '\*' -n etc/triphones1 -i etc/wintri.mlf util/mktri.led etc/phones\_sp.mlf
in in out_dir in in
HHEd -B -H model/mono\_sp/macros -H model/mono\_sp/hmmdefs -M model/cd\_untied\_0 etc/mktri.hed etc/hmm\_sp.list
in in in in in
HERest -B -I -t $PRUNING etc/wintri.mlf -S etc/train\_mfc.scp -H model/cd\_untied\_$((i-1))/macros -H model/cd\_untied\_$((i-1))/hmmdefs -M model/cd\_untied\_${i} etc/trifone
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment