mcfletch / sphfile

NIST SPH File reader (e.g. for TEDLIUM Corpus)
25 stars 8 forks source link

Error while reading SPH file #2

Open HsunGong opened 4 years ago

HsunGong commented 4 years ago

image

While I output the sphfile into wav, I found error listening to this wav.

Here is my example. test.zip

mcfletch commented 4 years ago

The file seems to use a compression format: ulaw,embedded-shorten-v2.00 which isn't supported by sphfile (which assumes uncompressed format).

sph2pipe does properly convert the file to .wav, but I don't see any documentation on the embedded-shorten-v2.00 encoding that would let me say whether it's something I could implement. For the interim I'd suggest doing the following on your data-files: sph2pipe iaab.sph iaab-uncompressed.sph which should write them in regular ulaw encoding, that in theory should work with sphfile.