PDA

View Full Version : CCITT A-Law conert with Linux



MefhigosetH
03-14-2010, 03:06 PM
Hi there...

I found a trick for convert any sound file to CCITT A-Law 8Khz 8/16bits Mono Epygi sound format.

Simply execute "sox input.wav -A -c 1 -r 8000 output.wav" where "input.wav" is the original sound file to convert and "output.wav" is the filename that we want for the converted soundfile.

Sox (Sound eXchange) reads and writes audio files in most popular formats and can optionally apply effects to them; it can combine multiple input sources, synthesise audio, and, on many systems, act as a general purpose audio player or a multi-track audio recorder. It also has limited ability to split the input in to multiple output files.

SoX is a command-line audio processing tool, particularly suited to making quick, simple edits and to batch processing. If you need an interactive, graphical audio editor, use audacity(1).

If we don't have sox installed in our system, we simply had to write: "sudo apt-get install sox" in any Debian/Ubuntu based system.

If you learn more about SoX, simply type "man sox" for a complete reference of the option availables and every aspect of this program.

Source: http://ubuntuforums.org/showthread.php?p=8065527

davrays
03-25-2010, 03:19 PM
Thanks for this tip, Victor.

Best regards,
David

domminic59
05-31-2010, 10:13 AM
good stuff vv
thanking you..

cheers
dom

ghomf
04-10-2011, 02:56 PM
SOX also works for windows . place all wav files in the same folder as sox and run the command above