"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "speech_class/esps_utils.cc" between
speech_tools-2.4-release.tar.gz and speech_tools-2.5.0-release.tar.gz

About: The speech_tools - Edinburgh Speech Tools Library (used by the Festival Speech Synthesis System).

esps_utils.cc  (speech_tools-2.4-release):esps_utils.cc  (speech_tools-2.5.0-release)
skipping to change at line 984 skipping to change at line 984
/* fake the rest to make it appear like other SD files */ /* fake the rest to make it appear like other SD files */
hdr->num_fields = 1; hdr->num_fields = 1;
hdr->field_dimension = walloc(int,hdr->num_fields); hdr->field_dimension = walloc(int,hdr->num_fields);
hdr->field_dimension[0] = 1; hdr->field_dimension[0] = 1;
hdr->field_type = walloc(short,hdr->num_fields); hdr->field_type = walloc(short,hdr->num_fields);
hdr->field_type[0] = ESPS_SHORT; hdr->field_type[0] = ESPS_SHORT;
hdr->field_name = walloc(char *,1); hdr->field_name = walloc(char *,1);
hdr->field_name[0] = wstrdup("samples"); hdr->field_name[0] = wstrdup("samples");
fseek(fd,hdr->hdr_size,SEEK_SET); fseek(fd,hdr->hdr_size,SEEK_SET);
/* In this cases its just in the header as a float */ /* In this cases its just in the header as a float */
sd_sample_rate = *((float *)&fhdr.fil4[0]); sd_sample_rate = *((float *)(void *)&fhdr.fil4[0]);
add_fea_d(hdr,"record_freq",0,(double)sd_sample_rate); add_fea_d(hdr,"record_freq",0,(double)sd_sample_rate);
*uhdr = hdr; *uhdr = hdr;
return format_ok; return format_ok;
} }
else if ((fhdr.fea_type == 8) && else if ((fhdr.fea_type == 8) &&
(hdr->num_fields == 1) && (hdr->num_fields == 1) &&
((fhdr.num_shorts*2) == preamble.record_size)) ((fhdr.num_shorts*2) == preamble.record_size))
hdr->file_type = ESPS_SD; /* this is a heuristic */ hdr->file_type = ESPS_SD; /* this is a heuristic */
else else
hdr->file_type = ESPS_FEA; hdr->file_type = ESPS_FEA;
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)