VoxForge
Hello everyone,
i am trying to run the HLEd command which is given in step 4 of this tutorial...
but when i run the command from my tutorial folder as told...i get the following error
ubuntu@ub:~/Julius_Linux/voxforge/tutorial$ $HLEd -A -D -T 1 -l '*' -d dict -i phones0.mlf mkphones0.led words.mlf
-A: command not found
what is the mistake here...can anyone guide me further.
thanks in advance.
It looks like the script is complaining about the switch -A but I don't think that is the case. If HLEd was running it would produce a different message if it did not like the -A.
Test 1: what do you get from "which HLEd"
and if that works, what does bare command "HLEd" produce?
Ok so you do have HLEd installed and the sytem can find it, good.
Now just run the command HLEd without any switches such as -A and so on and we will see what happens.
The message you are getting seems to imply that when you run HLEd with all the switches the system is ignoring the HLEd part and trying to run the first switch -A as a programme, which of course it is not.
without any switches means i didn't get exactly what command i need to run
i tried with only HLEd...i got this...
ubuntu@ub:~/Julius_Linux/voxforge/tutorial$ HLEd
USAGE: HLEd [options] edCmdFile labFiles...
Option Default
-b suppress boundary times off
-d s load dictionary from s off
-i s Output transcriptions to MLF s off
-g f Set min gap for FG command to f 50000.0
-l s Dir to store output label file(s) current
-m Strip to monophones on loading off
-n f Output list of all new labs to f off
-A Print command line arguments off
-C cf Set config file to cf default
-D Display configuration variables off
-G fmt Set source label format to fmt as config
-I mlf Load master label file mlf
-P Set target label format to fmt as config
-Q Print command summary
-S f Set script file to f none
-T N Set trace flags to N 0
-V Print version information off
-X ext Set input label (or net) file ext lab
Right, that output is expected. As you can see from this output, the instruction HLEd works and the switch -A is perfectly valid. What seems to be happening is that when your system sees the command
HLEd -A ...
it skips over the HLEd and tries to interpret the -A as the command for the line and very properly reports that it cannot find an executable by that name. It is very puzzling. I don't know how to explain how this happens, except perhaps that in a script the HLEd and -A have become separated by a newline. What suggestions do you have?
>ubuntu@ub:~/Julius_Linux/voxforge/tutorial$ $HLEd -A -D -T 1 -l '*' -d dict -i phones0.mlf mkphones0.led words.mlf
>-A: command not found
looks like you've typed in '$HLEd' as the command rather than 'HLEd'... please omit the dollar sign in front of HLEd (or any other command in the tutorial). tTe dollar sign is just there to indicate the bash prompt.
Bash interprets $HLEd as a variable, and since it is empty it tries to execute '-A' as a command and then borks...
oh ya... thanks for the reply...i removed the dollar and ran the command.
now i am getting the follwing errors
HLEd -A -D -T 1 -l * -d dict -i phones0.mlf mkphones0.led words.mlf
No HTK Configuration Parameters Set
ERROR [+5010] InitSource: Cannot open source file mkphones0.led
ERROR [+1210] ReadScript: Can't open file mkphones0.led
FATAL ERROR - Terminating program HLEd