$ mkdir wav $ ls . .. wav |
$ ls ./wav 1.wav 2.wav ... 10.wav ... 99.wav 100.wav |
$ mkdir label $ ls label . .. |
$ ls ./label 1.lab 2.lab ... 10.lab ... 99.lab 100.lab |
$ mkdir mfcc |
HCopy -C config.hcopy \
-S script.hcopy |
$ ls ./mfcc 1.mfc 2.mfc ... 10.mfc ... 99.mfc 100.mfc |
$ ls ./proto noise.gmm voice.gmm |
#!/bin/sh # initialize a voice gmm HInit -T 1 \
-S trainlist.txt \
-M gmm0 \ -H proto/voice.gmm \ -l voice \ -L label voice \ -C train.conf # initialize a noise gmm HInit -T 1 \
-S trainlist.txt \
-M gmm0 \ -H proto/noise.gmm \ -l noise \ -L label noise \ -C train.conf # training a voice gmm HRest -T 1 \
-S trainlist.txt \
-M gmm1 \ -H gmm0/voice.gmm \ -l voice \ -L label voice \ -C train.conf # training a voice gmm HRest -T 1 \
-S trainlist.txt \
-M gmm1 \ -H gmm0/noise.gmm \ -l noise \ -L label noise \ -C train.conf cat gmm1/* > gmmsdef |
. |-- config.hcopy | |-- gmm0 | |-- noise.gmm | `-- voice.gmm | |-- gmm1 | |-- noise.gmm | `-- voice.gmm | |-- label | |-- 1.lab | |-- 2.lab | |-- ~~~~ | `-- 100.lab | |-- labellist.txt |-- makeGMM.sh |-- mfcc | |-- 1.mfc | |-- 2.mfc | |-- ~~~ | `-- 100.mfc | |-- proto | |-- noise.gmm | `-- voice.gmm | |-- script.hcopy |-- train.conf |-- trainlist.txt `-- wav |-- 1.wav |-- 2.wav |-- ~~~ `-- 100.wav |
julius -C Sample.conf -input mic -gmm gmmsdef -gmmreject "noise" |