Howto:Convert G711 files in to WAV files: Difference between revisions

From innovaphone wiki
Jump to navigation Jump to search
No edit summary
 
Line 13: Line 13:
===Installation===
===Installation===


The [http://sox.sourceforge.net/ SoX - Sound eXchange] is an open source (GPL) tool. Download and install it.
The [https://sourceforge.net/projects/sox/files/sox/14.4.2/ 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:
Here an example using SoX to convert a RAW G711A file to PCM ALAW WAV file:
Line 30: Line 30:


==Download==
==Download==
*[http://sox.sourceforge.net/ Download SoX executable for Win32 from sourceforge.net)]
*[https://sourceforge.net/projects/sox/files/sox/14.4.2/ Download SoX executable for Win32 from sourceforge.net)]
*[http://wiki.innovaphone.com/index.php?title=Howto:Wiki_Sources#g711towav Download] a script for drag and drop batch conversion of G711 files to WAV files.
*[http://wiki.innovaphone.com/index.php?title=Howto:Wiki_Sources#g711towav Download] a script for drag and drop batch conversion of G711 files to WAV files.



Latest revision as of 10:36, 20 September 2023

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

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