Regarding the recommended sample rate for a web client audio track: use 48 kHz. WebRTC and LiveKit commonly use 48 kHz for web client audio; egress/export and backend processing also assume incoming audio at roughly that rate. If you need to support other rates (e.g., 24 kHz for RoomIO agents), resample on the client or server as needed.
Would you like guidance on how to resample in the browser or how to verify the track's sample rate programmatically?
Sources:
Camera & microphone | LiveKit docs |
Track egress | LiveKit docs |
Agent session | LiveKit docs