Home

Resources

Products

Developers

Main • ConvertingAudio

Converting Audio


Yate has a wavefile module which is capable of playing audio in a number of formats.

Converting WAV files

If you have a wav file (in what format?) you can convert it using the SoX program.

- Raw linear, signed 16 bit, mono, 8000 Hz (.slin)

    sox file.wav -t raw -r 8000 -c 1 -w -s file.slin

- Raw mu-law, mono, 8000 Hz (.mulaw or .u)

    sox file.wav -t raw -r 8000 -c 1 -b 8 -U file.mulaw

- Raw A-law, mono, 8000 Hz (.alaw or .A)

    sox file.wav -t raw -r 8000 -c 1 -b 8 -A file.alaw

- Raw GSM, mono, 8000 Hz (.gsm)

    sox file.wav -t raw -r 8000 -c 1 -b 8 -g file.gsm
    (not all versions of sox support this conversion)

- SUN/SGI audio/basic file, mono 8000 Hz (.au) containing:

    - Signed linear
        sox file.wav -r 8000 -c 1 -w -s file.au
    - alaw
        sox file.wav -r 8000 -c 1 -b 8 -A file.au
    - mulaw
        sox file.wav -r 8000 -c 1 -b 8 -U file.au

In addition basic format "conversion" if needed:

- WAV into RAW (tested with an A-law, mono, 8000 Hz riff wavefile)

    sox file.wav file.raw

The SUN/SGI formats have the advantage of being easily playable in a Web browser and it also preserves the format information.

The output format should always be mono, 8 kHz as that is required for telephony.

Converting into WAV files

If you have a mono 8kHz raw data file you can convert it into wave file by using SoX

- Raw A-law, mono, 8000 Hz (.alaw or .A)

    sox -t raw -r 8000 -A -b 8 -c 1 file.alaw file.wav

- mulaw, mono 8000 Hz (.mulaw)

    sox -t raw -r 8000 -U -b 8 -c 1 file.mulaw test.wav

3 May 2010:
Yate 3.0.0 alpha 3 released. Featuring the new Jabber server and wideband audio.
Download NOW

8 March 2010:
Yate 2.2 released. Mostly bug fixes. Dahdi compatible. Latest 2 release before 3.0.

6-7 February 2010:
Yate booth at FOSDEM 2010. Free CD with Freesentral available.

2 Nov 2009:
Yate 2.1 launched. Can replace a Cisco PGW2200 to control a Cisco AS54xx.

6 Aug 2008:
Yate and OpenSIPS (former OpenSER) join to build IP based clusters.

4 Aug 2008:
Yate 2 launched.

10 Jul 2008:
Yate presentation in Germany.

Feb 2008:
Yate 2.0.0 alpha 2 released. New routing module allows sending ENUM routed or forked calls to numbers of registered phones. More...

21 Jan 2008:
Yate 2 alpha released. Major changes, new ISDN, SS7 and MGCP stack. Added analogic and RBS support.

3 September:
Yate 1.3 released. Minor fixes and improvments mainly in client and SIP.

14 August:
Yate based ISDN passive recording system released by Trisys.

16 April:
Yate 1.2 released. Added Jingle and XML support, PBX improved.

25 September:
YateAdmin 1 released.

25 September:
Yate 1.1 released. Fallback routing from a database, fax support in Linux and bug fixes. Changelog and Download availables.

11 July 2006:
O'Reilly published an article about prototyping telephony applications with Yate and Python.

10 July 2006:
Yate 1 released. Includes YIAX, YSIP, YRTP and many new features.

June 1st 2006:
New Yate website launched


EditHistoryBacklinksRecent ChangesSearch