"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "main/spectgen_main.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).

spectgen_main.cc  (speech_tools-2.4-release):spectgen_main.cc  (speech_tools-2.5.0-release)
skipping to change at line 93 skipping to change at line 93
//@options //@options
//@} //@}
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
EST_String out_file; EST_String out_file;
EST_StrList files; EST_StrList files;
EST_Option al; EST_Option al;
EST_Features op; EST_Features op;
int orig_sr;
EST_Wave sig; EST_Wave sig;
EST_Track spec; EST_Track spec;
parse_command_line parse_command_line
(argc, argv, (argc, argv,
EST_String("[input file] -o [output file]\n")+ EST_String("[input file] -o [output file]\n")+
"Summary: make spectrogram\n"+ "Summary: make spectrogram\n"+
"use \"-\" to make input and output files stdin/out\n"+ "use \"-\" to make input and output files stdin/out\n"+
"-h Options help\n"+ "-h Options help\n"+
skipping to change at line 124 skipping to change at line 123
"-w <float> white cut off (0.0 to 1.0)\n"+ "-w <float> white cut off (0.0 to 1.0)\n"+
"-b <float> black cut off (0.0 to 1.0)\n"+ "-b <float> black cut off (0.0 to 1.0)\n"+
"-raw Don't perform any scaling\n"+ "-raw Don't perform any scaling\n"+
"-order <int> cepstral order\n", files, al); "-order <int> cepstral order\n", files, al);
out_file = al.present("-o") ? al.val("-o") : (EST_String)"-"; out_file = al.present("-o") ? al.val("-o") : (EST_String)"-";
set_options(op, al); set_options(op, al);
if (read_wave(sig, files.first(), al) != format_ok) if (read_wave(sig, files.first(), al) != format_ok)
exit(-1); exit(-1);
orig_sr = sig.sample_rate();
make_spectrogram(sig, spec, op); make_spectrogram(sig, spec, op);
spec.save(out_file, al.val("-otype", 0)); spec.save(out_file, al.val("-otype", 0));
return 0; return 0;
} }
void set_options(EST_Features &op, EST_Option &al) void set_options(EST_Features &op, EST_Option &al)
{ {
 End of changes. 2 change blocks. 
2 lines changed or deleted 0 lines changed or added

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