I have few audio files which have .wav
extension. I tried to get information about this file using soxi <foo.wav>
command but I got following error :
soxi FAIL formats: can't open input file foo.wav':
Unknown WAV file encoding (type a100)
So I used MediaInfo
tool to get more information about this file I got following information about this file:
General
Format : Wave
File size : 51.4 KiB
Duration : 1mn 18s Overall
bit rate : 5 339 bps
Audio
Format : G.723.1
Codec ID : A100
Duration : 1mn 18s
Bit rate : 5 328 bps
Channel(s) : 1 channel
Sampling rate : 8 000 Hz
Stream size : 51.3 KiB (100%)
According to this information it seems like this file is has G.723.1
format and SOX is not able to understand this format.
So I would like to know :
- My conclusion that SOX does not support this type of file is correct?
- If SOX does not support this type of file then installing some codec will help? I have seen
lame
command on few web pages but not sure if it will help me or not.
Request super users to help !
Thanks in Advance !
Best Answer
Yes, SoX doesn’t support G.723.1. Installing an optional package won’t help either.
As Jet said, FFmpeg should be able to read the file (according to the list of supported audio codecs). If you just want to convert the audio to a different format, this should do it:
You can view a list of supported codecs and formats with
ffmpeg -codecs
andffmpeg -formats
, respectively.If you want to do some further processing with SoX, you can use FFmpeg to decode it and pipe the result into SoX like this: