Developer Reference
audio_config
Process-wide audio-encoding knobs.
The server resolves its audio settings once and publishes them here; the vendored WebRTC codec classes (constructed deep inside the codec factory, where no settings object reaches) read them at construction time. This module stays dependency-free so the WebSocket-only path can publish values without importing the WebRTC stack.
attributered_distanceOptional[int]= Nonefuncset_red_distance(distance) -> NonePublish the RED redundancy depth, clamped to non-negative.
Source Code
def set_red_distance(distance: int) -> None:
"""Publish the RED redundancy depth, clamped to non-negative."""
global red_distance
red_distance = max(0, int(distance))paramdistanceintReturns
None