I have tried to convert pcm files to wav, but keep getting a FAIL format error, no matter how many (or few) options I try. I am wondering what I need to do to get the file handler for pcm files. Installing sox again and updating the terminal did nothing. I know this question has been here before, and here, but sadly, nobody gave an answer that solved the problem.
Here's the command I tried:
sox -t raw -r 44000 --bits 16 −e signed-integer -c 2 -B \
infile.pcm /wav/outfile.wav channels 1
and this is the error it throws:
sox FAIL formats: no handler for file extension `pcm'
The pcm-files have the following properties:
- Sampling rate: 44 kHz
- Sample size: 16 bit
- Signal encoding: linear PCM (Don't know what this means?)
- File format: headerless raw
- Format: Motorola PCM (The data was created for an IBM system originally)
- Channels: 2 (speech in left + laryngograph/EGG in right)
I need it to give me the speech only (so convert from stereo to mono, but only taking the information from the left channel) and in a wav file, so the program I'm using can deal with it.