| | 1 | |
| | 2 | Before the "make all" step we have made some small changes in the code for being able to handle longer context feature names. |
| | 3 | We have made changes in: HTKLib/HShell.h, HTKLib/HUtil.c and HTKTools/HHEd.c. |
| | 4 | |
| | 5 | These changes are:[[BR]] |
| | 6 | |
| | 7 | - '''in HTKLib/HShell.h''' [[BR]] |
| | 8 | < #define MAXSTRLEN 256 /* max length of a string */ [[BR]] |
| | 9 | changed to: [[BR]] |
| | 10 | > #define MAXSTRLEN 2048 /* max length of a string */ [BR]] |
| | 11 | |
| | 12 | |
| | 13 | - '''in HTKLib/HUtil.c''' [[BR]] |
| | 14 | < char hname[256]; [[BR]] |
| | 15 | changed to: [[BR]] |
| | 16 | > char hname[MAXSTRLEN];[[BR]] |
| | 17 | |
| | 18 | |
| | 19 | - '''in HTKTools/HHEd.c''' |
| | 20 | < CreateHeap(&hmmHeap,"Model Heap",MSTAK,1,1.0,40000,400000); [[BR]] |
| | 21 | changed to: [[BR]] |
| | 22 | > CreateHeap(&hmmHeap,"Model Heap",MSTAK,1,1.0,40000,1600000); [[BR]] |
| | 23 | |
| | 24 | and |
| | 25 | |
| | 26 | < CreateHeap(&questHeap,"Question Heap",MSTAK,1,1.0,8000,16000); [[BR]] |
| | 27 | < CreateHeap(&tmpHeap,"Temporary Heap",MSTAK,1,1.0,40000,400000); [[BR]] |
| | 28 | changed to: [[BR]] |
| | 29 | > CreateHeap(&questHeap,"Question Heap",MSTAK,1,1.0,8000,200000); [[BR]] |
| | 30 | > CreateHeap(&tmpHeap,"Temporary Heap",MSTAK,1,1.0,40000,1600000); [[BR]] |
| | 31 | |
| | 32 | We have made another small change to the hts_engine/hts_engine.cpp for being able to use phoneme names like r=, (if you will not use the hts_engine you do not need to change this). |
| | 33 | |
| | 34 | - '''in /hts_engine/hts_engine.cpp''' |
| | 35 | < if (!isalnum(buf[0])) break; [[BR]] |
| | 36 | changed to: [[BR]] |
| | 37 | > if (!isgraph(buf[0])) break; [[BR]] |
| | 38 | |
| | 39 | After these changes you can continue as normal with "make all" and "make install".[[BR]] |
| | 40 | [[BR]] |
| | 41 | [[BR]] |
| | 42 | |