Asterisk Audio Converter
Upload audio files and convert them to formats Asterisk can play natively. Supports batch conversion, volume normalization, and silence trimming.
About Asterisk audio formats
Not sure which format to use or why providing multiple formats avoids real-time transcoding? The Asterisk Audio Formats Explained guide covers ulaw vs alaw, when G.722 wideband makes sense, and how to convert files on the command line with sox.
Related
Asterisk plays audio files from the Music on Hold directory, IVR prompts, and voicemail greetings. For best performance, provide files in the codec that matches the caller's channel so Asterisk does not need to transcode in real time.
Recommended presets
- Voice / IVR: normalize to -3 dB, trim silence, apply 300–3400 Hz bandpass.
- Music on Hold: soft limiter, normalize to -8 dB, no bandpass (preserves bass).
| Format | Extension | Use case |
|---|---|---|
| G.711 u-law | .ulaw | North American telephony (T1/PRI lines). Most common Asterisk format. |
| G.711 a-law | .alaw | European and international telephony (E1 lines). |
| GSM | .gsm | Good compression, widely compatible. Default for many Asterisk installations. |
| WAV (PCM) | .wav | Uncompressed 8 kHz 16-bit. Highest quality, largest file size. |
| Signed Linear | .sln | Raw PCM with no header. Asterisk internal format. Smallest overhead. |
| Signed Linear 16kHz | .sln16 | Raw wideband PCM (16 kHz). Pairs with G.722 for wideband-capable endpoints. |
| G.722 | .g722 | Wideband (16 kHz). Higher quality on PJSIP endpoints that support it. |
All narrowband formats use 8 kHz mono. Signed Linear 16kHz and G.722 use 16 kHz for wideband audio on endpoints that support it.
The same Harvard sentence (public domain) encoded to each format, then decoded back to WAV, exactly what Asterisk sends to a caller's channel.