Telephony Audio Converter (G.711 µ-law, A-law, 8 kHz WAV)

The file comes out at the sample rate, channel count and encoding a phone system reads.

Shareable link

Settings are written to the URL as you change them. Nothing differs from the defaults yet.

Oxyd An Audacity project (.aup3) opens without Audacity in Oxyd, and exports as MP3, WAV or FLAC. Open it in Oxyd

Telephony audio converter

Convert a voice prompt, greeting or hold music file to what a PBX, IVR or contact-centre platform plays. Every output is mono, at 8 kHz for a standard call or 16 kHz for a wideband one, and the G.711 encodings match the ITU tables byte for byte.

Output formats

Format Contents Size per minute
G.711 µ-law WAV 8 kHz, 8-bit µ-law, WAV format tag 7 480 kB
G.711 A-law WAV 8 kHz, 8-bit A-law, WAV format tag 6 480 kB
16-bit PCM WAV, 8 kHz 8 kHz signed 16-bit 960 kB
16-bit PCM WAV, 16 kHz 16 kHz signed 16-bit, wideband 1.92 MB
.ulaw / .alaw The G.711 bytes with no header 480 kB
.sln 8 kHz signed 16-bit little-endian, no header 960 kB
.sln16 16 kHz signed 16-bit little-endian, no header 1.92 MB

A companded WAV carries the 18-byte fmt chunk and a fact chunk with the sample count, which the WAV specification requires of every non-PCM file.

The headerless files say nothing about their own format. The extension is the only label, so keep it: Asterisk reads .sln as 8 kHz and .sln16 as 16 kHz from the name alone.

PCM or G.711

A G.711 file is already in the codec most calls use. The phone system copies its bytes to the line, so nothing is re-encoded and the CPU cost per call is close to zero.

A 16-bit PCM file is uncompressed and twice the size. The phone system encodes it for each call, which lets one recording serve calls on different codecs. Asterisk takes this route for .wav files, and it is the safer upload when the platform’s documentation does not name a codec.

Pick µ-law for North American and Japanese systems and A-law for European and international ones when the platform asks for G.711 by name.

Phone band filter

A narrowband line carries roughly 300 to 3400 Hz. The filter removes what lies outside that range before encoding: a fourth-order high-pass at 300 Hz and a fourth-order low-pass at 3400 Hz. For the 16 kHz outputs the band is 50 Hz to 7 kHz.

Leave it on for voice prompts. Mains hum, desk thumps and plosive rumble sit below 300 Hz, cost headroom, and are inaudible on a handset anyway. Turn it off only when the system applies its own filter and you want the file to hold the full 0 to 4 kHz.

Level

The level setting scales the file so its loudest sample lands on the chosen value, measured after the filter. -3 dBFS is the default. Phone systems add no headroom of their own, and G.711 clips hard above full scale, so a prompt that peaks at 0 dBFS distorts on some handsets.

Peak level is not loudness. Two prompts normalised to the same peak can still differ in how loud they sound if one has a single sharp consonant standing above the rest. Match prompts by ear with Hear the call, or level them first with a loudness tool and choose “Leave the level as it is” here.

Stereo sources

A call has one channel. A stereo file is mixed to mono by averaging left and right. When the two sides hold different material, such as a voice on one side and music on the other, pick left or right instead.

Hear the call

The preview plays the encoded file decoded again, at the output sample rate. That is the audio a caller receives before the handset and the network add their own losses. The second button plays the untouched source, and switching between them keeps the playback position, so one sentence can be compared both ways.

Expect three audible changes: no treble above 4 kHz, less bass, and a faint grain under quiet passages from the 8-bit companding. Music loses more than speech. Hold music with dense cymbals or deep bass turns harsh on a narrowband line whatever the encoder does, so choose sparse arrangements.

Limits

  • The source can be up to one hour long.
  • G.722, G.729 and GSM 06.10 are not written.
  • Resampling to 8 or 16 kHz uses the browser’s audio decoder, which low-pass filters before reducing the rate.
  • No dither is added. At 8 bits of companded resolution the codec’s own noise is far above any dither.

Questions about Telephony Audio Converter (G.711 µ-law, A-law, 8 kHz WAV)

What does it do, and which files does it take?

It turns one audio file into a telephony file: G.711 µ-law or A-law in a WAV, 16-bit PCM WAV at 8 or 16 kHz, or the same audio with no header as .ulaw, .alaw, .sln or .sln16. The source can be WAV, MP3, M4A, Ogg, Opus or FLAC, mono or stereo, up to an hour long.

Which format should I pick for Asterisk or FreePBX?

Asterisk reads a .wav file only as 16-bit signed linear PCM at 8 kHz mono, so choose 16-bit PCM WAV, 8 kHz. It also plays the headerless formats by extension: .ulaw, .alaw, .sln and .sln16. A µ-law WAV is the wrong choice there. FreePBX runs on Asterisk and follows the same rules.

Which format do Cisco and other contact-centre systems ask for?

Many of them specify CCITT µ-law, 8 kHz, 8-bit, mono in a WAV container, which is the G.711 µ-law WAV option. Systems sold outside North America and Japan may ask for A-law. The vendor's prompt or music-on-hold documentation names the exact format, and it is worth reading before a batch of recordings.

Why is everything 8 kHz and mono?

A narrowband call samples the voice 8,000 times a second and carries one channel. G.711 stores each sample in 8 bits, which gives the 64 kbit/s of a standard voice channel. A file at 44.1 kHz stereo either gets rejected or is converted on the fly by the phone system with a resampler you did not choose.

What is the difference between µ-law and A-law?

Both squeeze a 16-bit sample into 8 bits with steps that grow with level, so quiet speech keeps more detail than loud speech. µ-law is the North American and Japanese standard, A-law the European and international one. They sound nearly the same and are not interchangeable: a file in one played as the other is loud noise.

Does it write G.722, G.729 or GSM?

No. Those codecs are not included. For wideband audio, the 16 kHz PCM WAV and .sln16 outputs hold the 50 Hz to 7 kHz band that a G.722 call carries, and the phone system encodes them when it plays them.

Why does my prompt sound thin or hissy after conversion?

That is the line, not a fault in the file. Nothing above 4 kHz survives an 8 kHz sample rate, and G.711 leaves a noise floor about 38 dB under the signal. Press Hear the call to listen to the decoded result before you upload it, and compare it with the source from the same position.

Related tools

Browse all tools