HTK toolkit cannot process your prompts file directly. You have two options, you can create a separate 'label' file for each line your prompts file in the following format:
*/sample1 |
Or you can create a Master Label File (MLF)
- which is a single file that contains a label entry for each line in
your prompts file - this is the easiest approach, and the one we will use for this tutorial. You can use the HTK script prompts2mlf
(you should have already copied this script from the /htk-3.3/samples/HTKTutorial folder to your
'voxforge/HTK_scripts' folder) to generate the mlf file from your
prompts file. Execute the prompts2mlf script from your
'voxforge/manual' folder as follows:
| $perl ../HTK_scripts/prompts2mlf words.mlf prompts |
This
script generates a
words.mlf
file.
Next you need to execute the HLEd command to expand the Word Level Transcriptions to Phone Level Transcriptions - i.e. replace each word with its phonemes, and put the result in a new Phone Level Master Label File This is done by reviewing each word in the MLF file, and looking up the phones that make up that word in the dict file you created earlier, and outputing the result in a file called phones0.mlf (which will not have short pauses ("sp"s) after each word phone group).
First, create the mkphones0.led edit script in your
'voxforge/manual' folder:
EX |
| $HLEd -A -D -T 1 -l '*' -d dict -i phones0.mlf mkphones0.led words.mlf |
Which
creates the
phones0.mlf
file
Next, we need to create a second phones1.mlf file (which will include short pauses
(“sp”) after each word phone group). First create the
mkphones1.led in your
'voxforge/manual' folder as follows:
EX |
(note: remember to include a blank line at the end of this script)
Then run the HLEd command again from your 'voxforge/manual' folder as follows:
| $HLEd -A -D -T 1 -l '*' -d dict -i phones1.mlf mkphones1.led words.mlf |