VoxForge
Create a new folder in your home directory and call it
'voxforge'. Create another directory within this folder and call
it 'howto'.
Create a file called sample.grammar in your 'voxforge/howto' folder, and add the following:
S : NS_B SENT NS_E SENT: CALL_V NAME_N SENT: DIAL_V DIGIT |
Still in your 'voxforge/howto' folder, create a file called sample.voca, and add the following:
% NS_B <s> sil % NS_E </s> sil % CALL_V PHONE f ow n CALL k ao l % DIAL_V DIAL d ay ah l % NAME_N STEVE s t iy v YOUNG y ah ng % DIGIT FIVE f ay v FOUR f ao r NINE n ay n EIGHT ey t OH ow ONE w ah n SEVEN s eh v ah n SIX s ih k s THREE th r iy TWO t uw ZERO z iy r ow |
For details on the file formats, see Step 1 - Task Grammar, in the Tutorial.
Download Julia mkdfa.jl grammar compiler script to your 'voxforge/bin' folder to compile your grammar files (sample.grammar and sample.voca) as follows:
(note you only need to execute the "cd" command if you are not already in the "auto" directory)
$ cd voxforge/auto $ julia ../bin/mkdfa.jl sample |
This creates 3 files: sample.dfa, sample.term and sample.dict.