bulky-car-15738
11/04/2025, 6:10 AMtall-airline-16756
11/04/2025, 6:10 AMtall-airline-16756
11/04/2025, 6:11 AMmuted state on the publication. See tracks and publications.
• For agent/tts audio (server-side): insert a processor in your TTS or realtime audio output node to scale volume before sending. See agent speech/audio and pipeline nodes/hooks.
Which SDK are you using (JS, iOS, Android, Unity, etc.) and do you want code for playback volume or server-side processing?
Sources: Rooms, participants, and tracks | LiveKit docs | Subscribing to tracks | LiveKit docs | Real-time audio and video in the Metaverse | Pipeline nodes and hooks | LiveKit docs | Agent speech and audio | LiveKit docsbulky-car-15738
11/04/2025, 7:06 AMtall-airline-16756
11/04/2025, 7:08 AMAudioStream, scale amplitudes down, and publish the processed audio back to the room as a new track (so all listeners hear it quieter). You’ll use raw track processing and your pipeline node to adjust gain. References: raw media tracks, agent speech/audio, nodes/hooks.
Would you like a minimal Python snippet showing how to:
• Wrap a subscribed track with rtc.AudioStream, attenuate frames, and republish; or
• Adjust playback volume from your client (which frontend are you using)? Sources: Subscribing to tracks | LiveKit docs | Agent speech and audio | LiveKit docs | Pipeline nodes and hooks | LiveKit docs | Cartesia TTS plugin guide | LiveKit Docs | Managing participants | LiveKit docsbulky-car-15738
11/04/2025, 7:11 AMtall-airline-16756
11/04/2025, 7:12 AMroom.on(RoomEvent.TrackSubscribed, (track, publication, participant) => {
if (track.kind === 'audio') {
track.volume = 0.5; // 50% volume; range is 0.0–1.0
}
});
You can also adjust later via the publication:
const pub = remoteParticipant.getTrackPublication(Track.Source.Microphone);
pub?.track && (pub.track.volume = 0.3);
More on subscribing and playback controls: docs.
Sources: Subscribing to tracks | LiveKit docs | Rooms, participants, and tracks | LiveKit docs | Real-time audio and video in the Metaverse | Agent speech and audio | LiveKit docs