Skip to main content
The Humain SIP gateway accepts audio in several codecs and transcodes internally to Opus before passing audio to the AI pipeline. Codec choice affects transcription accuracy, bandwidth usage, and compatibility with your PBX or telephony provider.

Compatibility matrix


Which codec should I use?

Opus is the native codec for WebRTC and operates at up to 48 kHz stereo. It supports variable bitrate, making it efficient on constrained links while delivering high quality when bandwidth is available.Use Opus when:
  • Your PBX or SIP stack supports it (FreeSWITCH, Kamailio, recent Asterisk builds)
  • You are using a WebRTC-to-SIP gateway
  • You want the highest possible transcription accuracy from Gemini Live
Note: Opus requires the opus codec module in Asterisk (codec_opus). This module is not bundled with Asterisk and must be installed separately from Digium or Sangoma.
G.711 PCMU (μ-law, North America) and PCMA (A-law, Europe/Rest of World) are supported by every SIP device made in the last 30 years. Use G.711 when:
  • You are unsure what codecs your carrier or PBX supports
  • You are connecting legacy ATAs or analogue gateways
  • You are troubleshooting — G.711 eliminates codec negotiation as a variable
The STT accuracy impact of G.711 is acceptable for clear, quiet audio. In noisy environments or with accented speech, consider switching to G.722 if your PBX supports it.
G.729 is a low-bitrate (~8 kbps) narrowband codec that requires a licensed decoder. The Humain gateway does not include a G.729 license. If your carrier sends G.729, you must transcode it to G.711 or G.722 at your PBX before routing to Humain.Asterisk transcode config:
FreeSWITCH and most hosted PBXes can transcode G.729 to G.711 transparently.

SDP negotiation

The Humain gateway advertises codecs in this preference order in its SDP m=audio line:
Your PBX will select the first mutually supported codec from this list. If you want to force a specific codec, configure your PBX endpoint to offer only that codec.

DTMF

The gateway accepts DTMF via RFC 2833 / RFC 4733 (telephone-event payload type 101). In-band DTMF (audio tones) is not detected — configure your PBX to use out-of-band DTMF. Asterisk:
FreeSWITCH: