﻿# Opus SDP stereo fields: receive preference and sender property have different directions

Opus SDP stereo fields: receive preference and sender property have different directions. A focused voice-infrastructure guide with the documented mechanism, a reproducible validation scenario, evidence and operation.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/voice-opus-sdp-stereo-sprop-directions/
Language: en

Opus SDP uses separate fields for a receiver's stereo preference and a sender's likely stereo production. Treating them as one symmetric channel-count switch can configure the wrong direction of a duplex voice session. A browser or telephony gateway must preserve which endpoint made which statement before selecting capture, echo-processing and model-input policies.

## The audio contract

The Opus RTP specification defines stereo as a receive preference and sprop-stereo as a statement about the sender's likely output. The latter is not a guarantee that stereo will never occur when mono is expected. Receivers still have decoding obligations independent of a mono preference. Directional signaling, encoded packet content and the chosen decoder output configuration are related but distinct layers. A preference should not be converted into an unsupported hard rejection or an assumption that every source channel has a separate speaker.

## Implementation details

Represent local receive preference and remote send properties with direction-specific names in the session model. Keep actual decoder output channels and any mono downmix policy explicit. If the speech model expects mono, perform a documented conversion from the actual waveform rather than pretending that an SDP preference already performed it. Preserve channel behavior for prerecorded prompts or other cases that differ from ordinary microphone capture. Record the offer-answer context so a later renegotiation updates the correct direction without accidentally changing the opposite playback or capture path.

## A constructed validation case

Construct an asymmetric session in which the receive preference differs from the sender's expected production. Decode a valid stereo prompt within the supported protocol behavior and inspect the chosen model-input conversion. Reverse endpoint roles to expose code that assigns the same field symmetrically. Acceptance requires correct directional interpretation and truthful waveform metadata, not a universal assertion that mono signaling prevents every stereo packet. Preserve the negotiated context and actual prepared channel layout in the test evidence rather than only storing the final SDP text.

## Operational limits

This is signaling interpretation, not a claim that stereo improves every voice model. Acoustic channel usefulness and downmix quality need separate evaluation. Keep them distinct from the protocol's directional preferences when comparing real-time inference clients.

## Primary references

[Rfc7587](https://www.rfc-editor.org/rfc/rfc7587.html); [Opus Decoder](https://opus-codec.org/docs/opus_api-1.5/group__opus__decoder.html).

This is a proposed voice-system validation, not an executed Retrivium benchmark. Preserve the implementation version and unresolved outcomes; interface documentation does not establish the quality or timing of a deployed voice service.

## Related reading

[Moshi full-duplex dialogue: model streams do not remove microphone echo handling](/journal/fg2-moshi-duplex-audio-client-echo-boundary/); [Audio resampling for datasets: keep timestamps aligned when sample counts change](/journal/data-guide-audio-resample-time-labels/).
