Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: encoding ulaw wav to pcm wav format (Read 4818 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

encoding ulaw wav to pcm wav format

how would i encode a ulaw wav to pcm wav format using LAME command line?

encoding ulaw wav to pcm wav format

Reply #1
I don't think LAME can decode µ-law. You can probably use foobar2000 or the windows sound recorder to decode it to PCM, though.

encoding ulaw wav to pcm wav format

Reply #2
You can use SoX for that.

encoding ulaw wav to pcm wav format

Reply #3
i used winlame and it worked perfect. but i need a command line version...


lame -m m -r -s 8 --decode sample.wav works but the sample is noisy... although when i do the decoding in winlame the sample is clear.

encoding ulaw wav to pcm wav format

Reply #4
okay so i have downloaded sox and so far i am not certain how to speciffy that i want to convert from a wav ulaw to a wav pcm... it doesnt have anywhere to specify format other than uw and wav... options which dont work for a wav file which is ulaw format and not ulaw filetype...

encoding ulaw wav to pcm wav format

Reply #5
actually the option is -s for signed.

encoding ulaw wav to pcm wav format

Reply #6
the only problem now is the bitrate... how do i control the bitrate w/ sox?

encoding ulaw wav to pcm wav format

Reply #7
-b = 8bit
-w = 16bit
-l = 32bit
-d = 64bit

It's all in the docs.

encoding ulaw wav to pcm wav format

Reply #8
thats for audio sample size. id like the bitrate of the ouptut file to be 128kbps and i dont see that anywhere any the documentation... although it may be there maybe i am searching for the wrong term?

 

encoding ulaw wav to pcm wav format

Reply #9
You don't set bitrate for PCM - it's defined by its parameters (sample-rate, bits-per-sample, and number of channels).