It seems likely that LiveKit enforces a default audio encoding of 48kHz stereo, as indicated by the
AudioStream class which defaults to a sample rate of 48000 Hz and 1 channel. This suggests that even if you publish an audio track with a different sample rate and channel configuration, LiveKit might convert it to its default settings for consistency and compatibility across different clients and devices.
If you are experiencing this conversion, it might be due to LiveKit's internal handling of audio streams to ensure optimal quality and compatibility. Would you like more details on how to potentially configure or override these settings?
Sources:
-
AudioStream class 👍 0 button 👎 0 button 💡
Hint: Mention @runllm in the thread for followups.