How do I import a uLaw-format audio file into Mathematica? Here's an example:
For reference, here's the same file in wav format:
As I understand it, the uLaw format contains raw µ-law audio data. In this respect, it should be very similar (or identical) to AU, which Mathematica supports, except there is no header.
I have tried:
Import["hello-world.ulaw", "AU"]
but Mathematica returns:
Import::fmterr: Cannot import data as AU/SND format.
From the documentation, it looks like there is probably some combination of parameters and options that will work, but the Import/Export documentation doesn't go into much detail on how to actually use the various available options. (Or at least, not in a way that makes sense to me!)
BinaryReadList["hello-world.uLaw"]. This gives a long list of values (between 2 and 255). Normally one would turn these into sound withSampledSoundListbut it does not lead to an intelligible sound in this case, so the data must be encoded in some way. – bill s Sep 11 '13 at 04:11