Howto:Convert G711 files in to WAV files

From innovaphone-wiki

Jump to: navigation, search

This article describes how to convert G711 files recorded by innovaphone devices to WAV files.

Contents

Applies To

G711A and G711U files created by innovaphone devices.

More Information

Problem Details

The G711 files created by innovaphone devices (WEBMEDIA) are header-less raw PCM files. To be able to play this files on most audio players, you will need to convert them into WAV files. This can be done using open source audio file converter SoX.

Installation

The SoX - Sound eXchange is an open source (GPL) tool. Download and install it.

Here an example using SoX to convert a RAW G711A file to PCM ALAW WAV file:

sox --channels 1 --type raw --rate 8000 -A input_file.g711a output_file.wav

For G711U files replace the parameter -A with -U.

If you must convert big amount of files, try the DOS batch script in the download section.

Newer versions of sox need another syntax, like this:

sox --channels 1 --type raw --rate 8000 -e a-law input_file.g711a output_file.wav

Known Problems

The output file name extension must be .wav, otherwise SoX can not detect output file format.

Download

Related Articles

Howto:Convert_wave_files_in_to_G7xx_coder_files

Howto:Convert wave files to G7xxx with softcode

Personal tools