VoxForge
Hi ethan,
You need to change directory into the directory where sample.sfa and sample.voca are located (I assume the "voxforge/auto" directory), and execute the mkdfa.pl script from there.
I'll make this clearer in the instructions.
thanks,
Ken
hi..
i did the same as given in the instructions of converting to juliun.
i have also changed the drive to home/voxforge/auto
but on running mkdfa.pl
its giving an error:-
$ mkdfa.pl sample
cannot open "sample.grammar" at /cygdrive/c/Cygwin/Julius/julius-3.5.2-multipath
-win32bin/bin/mkdfa.pl line 66.
alright guys. stupid but true, i solved it.
theline 66 error occurs because sample.grammar is a txt file.
and since the EOL for windows and unix is different, i used notepad++ to convert it to unix and changed the extenstion to .grammar instead of sample.grammar.txt
hope this help
you should not bother to convert the file if you get error line 66, the error actually means you have not navigate the path to the location of your grammar file yet. so you should write the following command:
$ cd /home/[your home directory]/voxforge/auto/
after ENTER you should see a new line like this:
[your home directory]@[PC name] ~/voxforge/auto
then write again the following command:
$ mkdfa.pl sample
and you should get the desired result,
BUT if you get something like this:
[your home directory]@[PC name] ~/voxforge/auto
$ mkdfa.pl sample
sample.grammar has 3 rules
sample.voca has 6 categories and 18 words
---
Now parsing grammar file
"rror: Lexical mistake "
---
no .dfa or .dict file generate
NOW this is when you need to convert the file. To do so, follow the instruction in the link here to convert the file within the cygwin terminal itself.