VoxForge
hi
When I tried to run this command : HSLab any_name
I got this result
C:\htk\bin.win32>HSLab any_name
ERROR [+6870] MakeXGraf: Not compiled with X11 support: use HGraf.X.c
FATAL ERROR - Terminating program HSLab
HGraf
+6870 X11 error
Ensure that the DISPLAY variable is set and that the X11 window system is configured
correctly.
What does the result mean:
C:\htk\bin.win32>HDMan -m -w wlist.txt -n monophones1 -l dlog newdict.txt beep/b
eep-2.0
ERROR [+1452] ReadDictProns: word ASTRALLY out of order in dict beep/beep-2.0
FATAL ERROR - Terminating program HDMan
>ERROR [+6870] MakeXGraf: Not compiled with X11 support: use HGraf.X.c
> FATAL ERROR - Terminating program HSLab
When you compiled HTK, you probably did not include the x11 developer packages for your Linux distro (for Fedora it is something like libX11-devel)?
HSLab is just an audio recorder with some transcription features... you can use Audacity instead.
>ERROR [+1452] ReadDictProns: word ASTRALLY out of order in dict
>beep/beep-2.0
Just what it says... the word ASTRALLY in not in the proper dictionary order, fix it...
Ken
>how to fix [...] out of order in dict beep ?
Perl's sort command should work:
open(INPUT,"beep-1.0"); # Beep dictionary
my(@lines) = <INPUT>; # read file into list
close(INPUT);
@lines = sort(@lines); # sort the list
open(OUTPUT,">beep-fixed"); # output file
my($line);
foreach $line (@lines) { # loop thru list
print OUTPUT "$line"; # print in sorted order
}
close(OUTPUT);
Thanks. But problem still remains, even with the beep-fixed by generated by above perl script
1. Any thoughts what is happening ?
I am getting following message:
HDMan -b sp -n fulllist -g global.ded -l flog beep-tri beep-fixed
ERROR [+1452] ReadDictProns: word DOUBLE-QUOTE out of order in dict beep-fixed
FATAL ERROR - Terminating program HDMan
2. And what is 'beep-tri' ?
How to obtain it ?
updated script:
open(INPUT,"beep-1.0"); # Beep dictionary
my(@lines) = <INPUT>; # read file into list
close(INPUT);
@fixedlines;
foreach $line (@lines) { # loop thru list
$line =~ s/\\//g; # remove backslashes
if ( $line !~ m/^(\"|\'|#)/ ) { # remove lines with leading single & double quote or comments
push @fixedlines, $line;
}
}
@lines = sort(@fixedlines); # sort the list
open(OUTPUT,">beep-fixed"); # output file
my($line);
foreach $line (@lines) { # loop thru list
print OUTPUT "$line"; # print in sorted order
}
close(OUTPUT);