is there a way to turn up or down the volume of pa...
# ask-ai
s
is there a way to turn up or down the volume of participants? I'm hoping to configure this one time server side, i.e. participants don't need this control
t
Thanks for reaching out, Wolfgang. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
LiveKit doesn’t currently support adjusting the volume of human participant audio streams on the server side. Instead, volume control happens on the client side using SDK methods like setVolume(), which you can apply to individual tracks or participants. Just a heads-up—these changes only affect what you hear locally and don’t change the original audio stream sent to the server. If you’re working with AI-generated audio, there’s a bit more flexibility! You can modify the volume on the server side by using custom agent logic, where audio frames are processed in the agent’s pipeline before reaching participants. Please feel free to reach out if you’d like more guidance on how to implement client-side volume control or set up agent-based audio processing. I’m here to help! Sources: Sources/LiveKit/Audio/MixerEngineObserver.swift | Runtime/Scripts/Room/Participant/RemoteParticipant.cs | Subscribing to tracks | LiveKit Docs | Pipeline nodes and hooks | LiveKit Docs | example/sample.ts
s
yes for the AI generated audio i would like to increase the volume. I'm using the python sdk. please provide an example. I'm still on the 0.x version of livekit
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!
s
I would like more guidance on setting up agent-based audio processing, ie adjusting the volume on the server side by using custom agent logic