From: Daniel P. <dp...@gm...> - 2014-10-18 18:51:44
|
> In wave-reader.cc, on line 200, the code exits if all the data in not a > single chunk > I don't think we've encountered files that have multiple chunks yet, so let's cross that bridge when we cross it. If I recall correctly, the wav format theoretically includes a vast range of different things, so that if we tried to truly implement it to the standard, most of Kaldi code would end up being devoted to reading in wav files, and we'd probably have to end up rewriting most of Windows. . In some badly written wav files, the length in the header is not correct, > but the file is usable anyways. For my use, I changed this ERROR to a > WARNING. I am wondering if changing this for everyone makes sense. > I suspect you may be using an out of date copy of Kaldi. IIRC this issue no longer exists and it does just print a warning. E.g. sox prints the wrong header size when writing to a stream. However, we found another issue, that sox sometimes outputs ridiculously large sizes in the header when writing to a stream, when you do things like time-warping (stretching/shrinking) the audio. The current Kaldi wav-reading code has a bug that it outputs a wav file with the size from the header, not the the size of the actual amount of data it read. And I'm not sure if the contents of the remaining part are even defined. Tom Ko (cc'd) is going to fix this bug, and also make it so that the wav-reading code is efficient in the case when the size in the header is ridiculously large. > How often do we run across wav files with multiple chunks? > I don't think we have ever come across wav files with multiple chunks, but if we do, we can implement it. Dan > > > ------------------------------------------------------------------------------ > Comprehensive Server Monitoring with Site24x7. > Monitor 10 servers for $9/Month. > Get alerted through email, SMS, voice calls or mobile push notifications. > Take corrective actions from your mobile device. > http://p.sf.net/sfu/Zoho > _______________________________________________ > Kaldi-developers mailing list > Kal...@li... > https://lists.sourceforge.net/lists/listinfo/kaldi-developers > > |