function write_htk_labels(name,label,begs,ends,scores);
% function write_htk_labels(name,label,begs,ends,scores);

N = length (begs); 
const = 1 / 100 / 100e-9; 
% some conversion ... 
begs = begs * const;  ends = ends * const; 
ff = fopen (name,'w'); 
for (ii=1:N)
  fprintf(ff,'%ld %ld %s %f\n',begs(ii),ends(ii),label,scores(ii));
end
fclose(ff); 
