-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add run.sh and friends to produce HTK features
- Loading branch information
Showing
3 changed files
with
130 additions
and
0 deletions.
There are no files selected for viewing
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 @@ | ||
# Coding parameters | ||
SOURCEFORMAT = WAV | ||
TARGETKIND = MFCC_K | ||
TARGETRATE = 100000.0 | ||
#SAVECOMPRESSED = T | ||
SAVEWITHCRC = T | ||
WINDOWSIZE = 250000.0 | ||
USEHAMMING = T | ||
PREEMCOEF = 0.97 | ||
NUMCHANS = 26 | ||
CEPLIFTER = 22 | ||
NUMCEPS = 19 | ||
ENORMALISE = F |
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,25 @@ | ||
#!/bin/bash | ||
# | ||
# Run script to generate HTK MFCC features, given a WAV audio file | ||
# then given a speech/nonspeech file (extension .scp), run DiarTK | ||
# (also known as ib_diarization_toolkit) to produce RTTM clustered | ||
# utterances and generated speaker IDs | ||
|
||
#Needs to be parameterized to take another argument which is for | ||
# now hard coded as "test2.scp" | ||
|
||
# Needs to save results to a named folder, not hard coded diartk_output/diartk_result* | ||
|
||
workdir=diartk_output | ||
|
||
mkdir -p $workdir | ||
|
||
# first generate HTK features | ||
HCopy -T 2 -C htkconfig $1 $workdir/diartk.fea | ||
|
||
# next run DiarTK | ||
scripts/run.diarizeme.sh $workdir/diartk.fea test2.scp $workdir diartk_result | ||
|
||
# print results | ||
cat $workdir/diartk_result.out | ||
|
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,92 @@ | ||
test2_144_393=test2.scp[144,393] | ||
test2_394_643=test2.scp[394,643] | ||
test2_644_893=test2.scp[644,893] | ||
test2_894_1143=test2.scp[894,1143] | ||
test2_1144_1393=test2.scp[1144,1393] | ||
test2_1394_1643=test2.scp[1394,1643] | ||
test2_1644_1893=test2.scp[1644,1893] | ||
test2_1894_2143=test2.scp[1894,2143] | ||
test2_2144_2393=test2.scp[2144,2393] | ||
test2_2394_2643=test2.scp[2394,2643] | ||
test2_2644_2893=test2.scp[2644,2893] | ||
test2_2894_3143=test2.scp[2894,3143] | ||
test2_3144_3393=test2.scp[3144,3393] | ||
test2_3394_3643=test2.scp[3394,3643] | ||
test2_3644_3893=test2.scp[3644,3893] | ||
test2_3894_4143=test2.scp[3894,4143] | ||
test2_4144_4393=test2.scp[4144,4393] | ||
test2_4394_4643=test2.scp[4394,4643] | ||
test2_4644_4893=test2.scp[4644,4893] | ||
test2_4894_5143=test2.scp[4894,5143] | ||
test2_5144_5393=test2.scp[5144,5393] | ||
test2_5394_5643=test2.scp[5394,5643] | ||
test2_5644_5893=test2.scp[5644,5893] | ||
test2_5894_6143=test2.scp[5894,6143] | ||
test2_6144_6393=test2.scp[6144,6393] | ||
test2_6394_6643=test2.scp[6394,6643] | ||
test2_6644_6893=test2.scp[6644,6893] | ||
test2_6894_7143=test2.scp[6894,7143] | ||
test2_7144_7393=test2.scp[7144,7393] | ||
test2_7394_7643=test2.scp[7394,7643] | ||
test2_7644_7893=test2.scp[7644,7893] | ||
test2_7894_8143=test2.scp[7894,8143] | ||
test2_8144_8393=test2.scp[8144,8393] | ||
test2_8394_8643=test2.scp[8394,8643] | ||
test2_8644_8893=test2.scp[8644,8893] | ||
test2_8894_9143=test2.scp[8894,9143] | ||
test2_9144_9393=test2.scp[9144,9393] | ||
test2_9394_9643=test2.scp[9394,9643] | ||
test2_9644_9893=test2.scp[9644,9893] | ||
test2_9894_10143=test2.scp[9894,10143] | ||
test2_10144_10393=test2.scp[10144,10393] | ||
test2_10394_10643=test2.scp[10394,10643] | ||
test2_10644_10893=test2.scp[10644,10893] | ||
test2_10894_11143=test2.scp[10894,11143] | ||
test2_11144_11393=test2.scp[11144,11393] | ||
test2_11394_11643=test2.scp[11394,11643] | ||
test2_11644_11893=test2.scp[11644,11893] | ||
test2_11894_12143=test2.scp[11894,12143] | ||
test2_12144_12393=test2.scp[12144,12393] | ||
test2_12394_12643=test2.scp[12394,12643] | ||
test2_12644_12893=test2.scp[12644,12893] | ||
test2_12894_13143=test2.scp[12894,13143] | ||
test2_13144_13393=test2.scp[13144,13393] | ||
test2_13394_13643=test2.scp[13394,13643] | ||
test2_13644_13893=test2.scp[13644,13893] | ||
test2_13894_14143=test2.scp[13894,14143] | ||
test2_14144_14393=test2.scp[14144,14393] | ||
test2_14394_14643=test2.scp[14394,14643] | ||
test2_14644_14893=test2.scp[14644,14893] | ||
test2_14894_15143=test2.scp[14894,15143] | ||
test2_15144_15393=test2.scp[15144,15393] | ||
test2_15394_15643=test2.scp[15394,15643] | ||
test2_15644_15893=test2.scp[15644,15893] | ||
test2_15894_16143=test2.scp[15894,16143] | ||
test2_16144_16393=test2.scp[16144,16393] | ||
test2_16394_16643=test2.scp[16394,16643] | ||
test2_16644_16893=test2.scp[16644,16893] | ||
test2_16894_17143=test2.scp[16894,17143] | ||
test2_17144_17393=test2.scp[17144,17393] | ||
test2_17394_17643=test2.scp[17394,17643] | ||
test2_17644_17893=test2.scp[17644,17893] | ||
test2_17894_18143=test2.scp[17894,18143] | ||
test2_18144_18393=test2.scp[18144,18393] | ||
test2_18394_18643=test2.scp[18394,18643] | ||
test2_18644_18893=test2.scp[18644,18893] | ||
test2_18894_19143=test2.scp[18894,19143] | ||
test2_19144_19393=test2.scp[19144,19393] | ||
test2_19394_19643=test2.scp[19394,19643] | ||
test2_19644_19893=test2.scp[19644,19893] | ||
test2_19894_20143=test2.scp[19894,20143] | ||
test2_20144_20393=test2.scp[20144,20393] | ||
test2_20394_20643=test2.scp[20394,20643] | ||
test2_20644_20893=test2.scp[20644,20893] | ||
test2_20894_21143=test2.scp[20894,21143] | ||
test2_21144_21393=test2.scp[21144,21393] | ||
test2_21394_21643=test2.scp[21394,21643] | ||
test2_21644_21893=test2.scp[21644,21893] | ||
test2_21894_22143=test2.scp[21894,22143] | ||
test2_22144_22393=test2.scp[22144,22393] | ||
test2_22394_22643=test2.scp[22394,22643] | ||
test2_22644_22893=test2.scp[22644,22893] | ||
test2_22894_22944=test2.scp[22894,22944] |