Skip to main content

HD Voice in SIP Calls

HD Voice (High-Definition Voice) allows for crystal-clear audio quality in your SIP calls by utilizing wideband audio codecs. In the context of VideoSDK, this is achieved through support for the Opus codec.

To experience HD Voice quality, the SIP trunk provider and the endpoints involved must support and negotiate high-quality codecs.

Inbound Calls

For inbound calls (calls coming from your SIP provider to VideoSDK), the audio quality depends on what your SIP trunk provider sends.

To enable HD Voice for inbound calls:

  1. Ensure your SIP trunk provider supports HD Voice (e.g., Telnyx).
  2. Configure your provider to use Opus as the preferred codec in their SIP invites.

If the incoming call offers Opus, VideoSDK will negotiate it, resulting in high-definition audio.

Outbound Calls

For outbound calls (calls initiated from VideoSDK to a PSTN or SIP endpoint), VideoSDK supports multiple codecs to ensure compatibility and quality.

By default, VideoSDK sends the following codecs in the priority order:

  1. PCMA (G.711 A-law)
  2. PCMU (G.711 µ-law)
  3. Opus

To enable HD Voice for outbound calls:

  • You must ask your SIP provider to prioritize or support the Opus codec in their response.
  • If the provider accepts Opus during the negotiation, the call will be established with HD Voice quality.

Got a Question? Ask us on discord