Click here to register.

Run Acoustic Model Creation Script

Make sure you have the following HTK scripts to your 'voxforge/HTK_scripts' folder:

  • maketrihed;
  • mkclscript.prl;
  • prompts2mlf;
  • prompts2wlist.

Create a new folder in your voxforge and call it 'scripts'.  Extract the following tar file to your 'voxforge/auto/scripts folder:

scripts.tgzscripts.tgz

Run the HTK_Compile_Model_sh script:

$ cd  voxforge/auto/scripts
$./HTK_Compile_Model.sh

This will create the following files (located in the auto/acoustic_model_files folder) that make up your acoustic model:


Note: the hmmdefs file shown here was trained with my voice.  It will not work with your voice.  Your file will have a the same structure as this one, but the statistics will be different.
 

 


Comments

Click the 'Add' link to add a comment to this page; click the 'Read More' link to view replies to a posted comment.

AddSearch

Stucks at step 7- fixing silencemodels at making hmm4
By thaparallawadinishant - 1/10/2012 - 1 Replies

hello all

I ran the HTK_Compile_Model.sh file after completeing all the steps prior to it.. and it is getting stucked at step 7.. here is the output

PLZ Help me out... THANKSS in Advance.. :)

$ ./HTK_Compile_Model.sh

        init
==============================================================

        Step 1 - Task Grammar
==============================================================
already completed manually


        Step 2 - Pronunciation Dictionnary
==============================================================
sorting:./interim_files/wlist to:./interim_files/wlist1
Found voxforge_lexicon
***Please review the following HDMan output***:

WARNING: no script file ./input_files/voxforge_lexicon.ded

Dictionary Usage Statistics
---------------------------
  Dictionary    TotalWords WordsUsed  TotalProns PronsUsed
voxforge_lex     27380        114      27431        114
        dict       114        114        114        114

114 words required, 0 missing

New Phone Usage Counts
---------------------
  1. ae    :    18
  2. b     :    32
  3. ax    :    44
  4. l     :    42
  5. aa    :     9
  6. n     :    39
  7. sp    :   112
  8. d     :    26
  9. m     :    13
 10. ih    :    33
 11. z     :     7
 12. sh    :     7
 13. aw    :     4
 14. ng    :     7
 15. t     :    32
 16. k     :    32
 17. ch    :     5
 18. iy    :    14
 19. v     :     8
 20. uw    :     8
 21. y     :     8
 22. p     :    11
 23. ah    :     8
 24. er    :     9
 25. eh    :    23
 26. r     :    25
 27. ow    :    11
 28. f     :     5
 29. g     :     8
 30. s     :    15
 31. th    :     7
 32. hh    :    10
 33. ey    :    20
 34. dh    :     4
 35. ao    :     4
 36. ay    :    12
 37. zh    :     6
 38. el    :     6
 39. jh    :     4
 40. en    :     4
 41. uh    :     5
 42. oy    :     4
 43. w     :     3
 44. sil   :     2

Dictionary ./interim_files/dict created

        Step 3 - Recording the Data
==============================================================
already completed manually


        Step 4 - Creating Transcription Files
==============================================================
writing to mlf file ./interim_files/words.mlf
Use of uninitialized value $fname in substitution (s///) at ../../HTK_scripts/pr   ompts2mlf line 34, <LAB> line 32.
Use of uninitialized value $fname in substitution (s///) at ../../HTK_scripts/pr   ompts2mlf line 35, <LAB> line 32.
Use of uninitialized value $fname in concatenation (.) or string at ../../HTK_sc   ripts/prompts2mlf line 36, <LAB> line 32.
writing to ./interim_files/words.mlf file done

        Step 5 - Coding the (Audio) Data
==============================================================

        Step 6 - Creating Monophones
==============================================================
making hmm0

making hmm1

making hmm2

making hmm3


        Step 7 - Fixing the Silence Model
==============================================================
making hmm4


215: let: not found
By nemozny - 8/30/2011

If you get "215: let: not found", change in the script the first line to "#!/bin/bash"

step 5, error[+6311], error[+1014]
By jackinx - 8/29/2011 - 2 Replies

Hi, I'm Jack Roh in IIT Delhi.

I solved previous one with

sudo rm /bin/sh

sudo ln -s /bin/bash /bin/sh

 

and Now I'm encounter another error with the title.

ERROR [+6311]  SaveBuffer: cannot create file ../train/mfcc/sample1.mfc

ERROR [+1014]  PutTargetFile: Could not save parm file ../train/mfcc/sample1.mfc

I'm using Ubuntu 10.04. 
Is there any ideas?
Thanks in advance.

==./HTK_Compile_Model.sh: 215: let: not found
By Jack Roh - 8/29/2011

 

Hello, I'm Jack Roh in IIT Delhi.

I'm following the tutorial and stuck at the scripts.

as I did, 

$ ./HTK_Compile_Model.sh

then infinite error messages came as below.

==./HTK_Compile_Model.sh: 215: let: not found

==./HTK_Compile_Model.sh: 215: let: not found

==./HTK_Compile_Model.sh: 215: let: not found

...

I reviewed all the steps but I can't find out the point that I missed.

I set PATH so julian and HVite -V are working fine,

and I recorded my voice for training.

 

is there any ideas?

 

Thanks in advance.

 

Error6210
By Giovanni - 11/23/2010 - 1 Replies

Hi

When i lunch my htk_compile_module.sh script, when the scripts arrives at step 5 it geves me the following error:

 ERROR[+6210] OpenWaveInput: Cannot open waveform file ../../Profiles/giovanni/train/wav/sample1.wav

 

Who can help me?!

Thank you very much

untitled
By swbluto - 9/9/2010

Hello, I tried manually following the steps and I kept getting a ...

"

        Step 10 - Making Tied-State Triphones

==============================================================

making hmm13

 

  ERROR [+2662]  AssignStructure: cannot find tree for b state 2

 FATAL ERROR - Terminating program C:\cygwin\HTK\htk-3.3-windows-binary\htk\HHEd

.exe

making hmm14

 

  ERROR [+5010]  InitSource: Cannot open source file ./interim_files/tiedlist

  ERROR [+7010]  InitHMMSet: Can't open list file ./interim_files/tiedlist

  ERROR [+2321]  Initialise: MakeHMMSet failed

 FATAL ERROR - Terminating program C:\cygwin\HTK\htk-3.3-windows-binary\htk\HERe

st.exe

making hmm15

 

  ERROR [+5010]  InitSource: Cannot open source file ./interim_files/tiedlist

  ERROR [+7010]  InitHMMSet: Can't open list file ./interim_files/tiedlist

  ERROR [+2321]  Initialise: MakeHMMSet failed

 FATAL ERROR - Terminating program C:\cygwin\HTK\htk-3.3-windows-binary\htk\HERe

st.exe

cp: cannot stat `./interim_files/hmm15/hmmdefs': No such file or directory

cp: cannot stat `./interim_files/tiedlist': No such file or directory

"

error. I then started all over and downloaded the entire archive as provided, but found that some of the input files were different, so I still had to copy and paste (Like the 'prompts' file). I ran it again, and got the same result. Can someone send me an archive of their auto folder to swbluto4gems@yahoo.com so I can see where I went wrong? Thanks.

Another error
By swbluto - 9/9/2010 - 1 Replies

The location of the "scripts" folder is slightly confusing that, so I copied and pasted it to both "voxforge/" and "voxforge/auto". After doing that, it resolved the error in step 5 about not finding sample 1 in ../train/wav, and it seems to work correctly until step 13.

"

        Step 10 - Making Tied-State Triphones

==============================================================

making hmm13

 

  ERROR [+2662]  AssignStructure: cannot find tree for b state 2

 FATAL ERROR - Terminating program C:\cygwin\HTK\htk-3.3-windows-binary\htk\HHEd

.exe

making hmm14

 

  ERROR [+5010]  InitSource: Cannot open source file ./interim_files/tiedlist

  ERROR [+7010]  InitHMMSet: Can't open list file ./interim_files/tiedlist

  ERROR [+2321]  Initialise: MakeHMMSet failed

 FATAL ERROR - Terminating program C:\cygwin\HTK\htk-3.3-windows-binary\htk\HERe

st.exe

making hmm15

 

  ERROR [+5010]  InitSource: Cannot open source file ./interim_files/tiedlist

  ERROR [+7010]  InitHMMSet: Can't open list file ./interim_files/tiedlist

  ERROR [+2321]  Initialise: MakeHMMSet failed

 FATAL ERROR - Terminating program C:\cygwin\HTK\htk-3.3-windows-binary\htk\HERe

st.exe

cp: cannot stat `./interim_files/hmm15/hmmdefs': No such file or directory

cp: cannot stat `./interim_files/tiedlist': No such file or directory

 

Home@wheelin-7f76ffe ~/voxforge/auto/scripts

$

"

 

I looked into the hmm1 to hmm12 folder, and they all contain two files, but hmm13 to hmm15 contain no files within the folder. I'm assuming hmm13 had an error during construction, and it was never saved? I'm currently reading the manual version to see where it might be going wrong - the error seems a bit technical and indepth, though.

 

script error
By Conrad - 5/22/2010 - 1 Replies

All I get is:


==./HTK_Compile_Model.sh: 215: let: not found


-repeated over and over again...


any ideas where I'm going wrong?

Error running HTK_Compile_Model.sh
By 9yards - 7/21/2009 - 1 Replies

I am running HTK_Compile_Model.sh and getting the following error message. 

        Step 4 - Creating Transcription Files
==============================================================
writing to mlf file ./interim_files/words.mlf
writing to ./interim_files/words.mlf file done

        Step 5 - Coding the (Audio) Data
==============================================================
  ERROR [+6210]  OpenWaveInput: Cannot open waveform file ../train/wav/sample1.w
av
 FATAL ERROR - Terminating program C:\cygwin\HTK\htk-3.3-windows-binary\htk\HCop
y.exe

I have checked the directories and the code, but can't figure out where I am going wrong.  Can anyone give me some pointers? 

Much appreciated

 

 

error after HTK_Compile_Mode1.sh
By rahulgupta.87 - 5/4/2009 - 11 Replies

sample.grammar is :

S : NS_B SENT NS_E

SENT: COM VAR

sample.voca

% NS_B

<s>        sil

% NS_E

</s>        sil

% COM

INPUT        in pu t

OUTPUT        au t pu t

% VAR

A        a

B        b

RUNNING THE SCRIPTS GIVE :

$ ./HTK_Compile_Model.sh

 

        init

==============================================================

 

        Step 1 - Task Grammar

==============================================================

already completed manually

 

 

        Step 2 - Pronunciation Dictionnary

==============================================================

sorting:./interim_files/wlist to:./interim_files/wlist1

Found voxforge_lexicon

***Please review the following HDMan output***:

 

WARNING: no script file ./input_files/voxforge_lexicon.ded

Missing Words

-------------

*/sample1

5.41.15.1507;}viewkind4uc1pardf0fs20

A

ABALON

ABDOMINALS

ABOLISHpar

ABOUNDING

ABOUT

ACCOUNT

ACHIEVE

ACTUAL

ACUPUNCTURE

ADVENTUREpar

AEROBIC

AFGHAN

AGAINST

AGATHApar

AHEAD

AIRPLANE

ALGORITHM

ALLENTOWNpar

ALRIGHT

ALTHOUGH

ALTOGETHER

AMNESIA

AND

ANOTHERpar

ARTHRITIS

ASIA

AVERSION

Apar

B

BATTLE

BEATLE

BEIGE

BEIJINGpar

BELOW

BELT

BEND

BITTEN

BLATANT

BODY

BOOKENDS

BRIGHT

BRIGHTEN

BRITAINpar

BROOKHAVEN

BROUHAHA

BULLHEADSpar

BUSBOYS

Bpar

CALL

CHAMPLAIN

CHOICE

COILS

COINpar

COLLECTION

COLORATION

COMBINATION

COMMERCIALpar

COMPLAIN

COPYRIGHT

COUPLE

CRADLE

CRITERIA

CRUMBLEpar

CUBA

CUBE

CUMULATIVEpar

CURING

CURLING

CYCLINGpar

CYNTHIA

Courier

DANFORTH

DASHBOARD

DATABASEpar

DEPTHpar

DIGEST

DIGITAL

DILIGENTpar

ELAINE

EXPLAINpar

GATEWAY

GATORADE

GAZEBO

HELLO

HELMET

HELP

HELPLESS

HELPpar

HOOD

INPUT

INPUTpar

KENNEL

KENNETH

KENYA

LEISURE

LITTLE

MEASURE

MEASUREpar

METALpar

MIDDLE

Msftedit

NEEDLE

New;}}

OUTPUT

OUTPUTpar

PHONE

POODLE

RIGHTpar

SADDLEpar

SENT-END

SENT-START

STEVE

WEEKENDpar

YOUNG

YOUNGpar

par

 

Dictionary Usage Statistics

---------------------------

  Dictionary    TotalWords WordsUsed  TotalProns PronsUsed

voxforge_lex         0          0          0          0

        dict         0          0          0          0

 

119 words required, 119 missing

 

 

Dictionary ./interim_files/dict created

 

        Step 3 - Recording the Data

==============================================================

already completed manually

 

 

        Step 4 - Creating Transcription Files

==============================================================

writing to mlf file ./interim_files/words.mlf

writing to ./interim_files/words.mlf file done

  ERROR [+1232]  NumParts: Cannot find word Courier in dictionary

 FATAL ERROR - Terminating program C:\my\cygwin\HTK\htk-3.3-windows-binary\htk\H

LEd.exe

  ERROR [+1232]  NumParts: Cannot find word Courier in dictionary

 FATAL ERROR - Terminating program C:\my\cygwin\HTK\htk-3.3-windows-binary\htk\H

LEd.exe

 

HellRazorr@HellRazorrr ~/new/voxforge/auto/scripts

$

HowTo Error - directory acoustic_model_files not being created
By kmaclean - 1/26/2009

See this entry in trac: Ticket #449 - HowTo error

Just thought I would share a minor issue with you regarding the howto - in one of my projects I neglected to establish a directory called acoustic_model_files to receive hmmdefs and tiedlist. Interestingly the scripts created a single file called acoustic_model_files instead of the directory, and the error is not found until you run julius to test and he complains he cannot find hmmdefs etc. It looks as though the directory is there but in fact it is not. When I deleted the bogus file, created the directory and ran the setup again all was well.

Execution stops at step 5
By colbec - 3/5/2008 - 1 Replies

The first time I ran HTK_Compile_Model.sh it stopped at step 5 and complained that it could not find sample1.wav. The message indicated it was looking in a directory one level up, but the Howto calls for the wav files to be stored two levels up in voxforge/train/wav directory. 

I found that after:

mkdir auto/train and mkdir auto/train/wav,

copy all sample*.wav files to this new wav directory

mkdir auto/train/mfcc

then the script ran perfectly to the end. Maybe I missed something, but hope it helps.

STEEP 5 MISSING
By kat_wills - 12/28/2007 - 1 Replies Hi,
Step 4 made a reference on step 5,but it does not appear as if it exist.So when I ran the 'script' step, /HTK_Compile_Model.sh,it gave error.The step made reference to 'auto/acoustic_model_files folder' which did not exists.It appears some steps are missing in the linux tutorial.

Any help will be appreciated.

Thanks