From: Daniel P. <dp...@gm...> - 2015-06-25 20:52:48
|
> I know that the traditional recipe is to generate the script-file at > the same time as the archive file with a write specifier like: > "ark,scp:my.ark,my.scp" > > I was wondering if there is any tool to generate the my.scp file a > posteriori, something like: "generate-scp-from-ark my.ark > my.scp" No, there is not. > My problem is: When I generate the ark file and the scp file together, > the content of my.scp is something like this: > > key1 my.ark:pos1 > key2 my.ark:pos2 > ... etc ... > > However, if I try to process the script file from a different > directory, it won't be able to find the "my.ark" file, so need to > generate the ark and scp files from the same directory I will use > them, or use absolute paths. > > I was thinking of using the generate-scp-from-ark tool to generate a > location-specific scp file from the ark. > > How do you avoid this problem? Do you think this kind of tool would be useful? That is an inherent problem of filenames. Either you use relative filenames, in which case they won't be valid if you access them from a different directory, or you use absolute pathnames, in which case they won't be valid if you move the files. It's your choice; Kaldi lets you use whichever one you want. However, it should be simple to write an awk script to modify the .scp files to change the directory. Dan > ------------------------------------------------------------------------------ > Monitor 25 network devices or servers for free with OpManager! > OpManager is web-based network management software that monitors > network devices and physical & virtual servers, alerts via email & sms > for fault. Monitor 25 devices for free with no restriction. Download now > http://ad.doubleclick.net/ddm/clk/292181274;119417398;o > _______________________________________________ > Kaldi-users mailing list > Kal...@li... > https://lists.sourceforge.net/lists/listinfo/kaldi-users |