<@U084APK40NS> I have 50 Mb internet speed and the...
# ask-ai
a
@millions-hair-24956 I have 50 Mb internet speed and the AI constantly breaks up when streaming. Is there anyway to manage this better for slow/bad internet?
g
To manage streaming better on slow or bad internet, consider enabling adaptive streaming and dynacast features in LiveKit. Adaptive streaming automatically adjusts video quality based on network conditions, optimizing for bandwidth and CPU usage. Dynacast dynamically pauses video layers not being consumed, reducing bandwidth usage. These settings can help maintain a smoother experience even with limited internet speed. For more detailed guidance, you can refer to the LiveKit documentation on adaptive streaming and dynacast. Would you like more detailed steps on how to implement these features? Sources: - LiveKit JS Client SDK RoomOptions 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.
a
@millions-hair-24956 I am only using audio
@millions-hair-24956 I am only using audio
g
For audio-only streaming, you can optimize the experience by adjusting the audio bitrate settings. Ensure that the audio bitrate is set to a level that balances quality and bandwidth usage. According to LiveKit documentation, you can set the
audioBitrate
in the
publishDefaults
to a suitable value, such as 20,000 bps, which is often sufficient for clear audio without excessive bandwidth consumption. Would you like more detailed instructions on how to configure these settings in your application? Sources: - LiveKit Documentation on Publishing Tracks 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.
a
@millions-hair-24956 I dont see anything about bitrate settings in the docs you linked. Is this managed by the frontend or backend agent? What is the default and what is the best setting for slow internet?
g
It seems likely that audio bitrate settings can be managed on the frontend when publishing tracks. According to the LiveKit documentation, you can specify the
audioBitrate
in the
publishDefaults
when setting up your room or when publishing individual tracks. The default bitrate is not explicitly mentioned, but setting a lower bitrate, such as 20,000 bps, can help maintain audio quality on slower internet connections. If you need more detailed guidance on configuring these settings, please let me know. Sources: - LiveKit Documentation on Publishing Tracks 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.
a
There is no mention of audioBitrate or publishDefaults in the docs you provided @millions-hair-24956
g
I apologize for the oversight. The
audioBitrate
setting is indeed mentioned in the context of LiveKit's SDKs. For example, in the LiveKit Android SDK, the
AudioTrackPublishDefaults
class allows you to set the
audioBitrate
for audio tracks. This setting can be adjusted to optimize for slower internet connections by reducing the bitrate to a level that maintains acceptable audio quality while minimizing bandwidth usage. If you need further assistance on how to implement this in your specific setup, please let me know. Sources: - LiveKit Android SDK AudioTrackPublishDefaults 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.