I want to increase agent volume, how to do it?
# ask-ai
a
I want to increase agent volume, how to do it?
t
Thanks for reaching out, affandy. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
To help you increase the agent volume in LiveKit, you have a couple of friendly options to explore, either on the agent side or right from the client side: • Agent-Level Adjustment: You can gently override the
ttsNode
or
realtimeAudioOutputNode
in your agent's code. This way, you can programmatically adjust the audio output and set a volume level that feels just right for you. • Client-Side Adjustment: If you prefer, the frontend SDK offers some handy methods like
useTrackVolume
or
RemoteParticipant.setVolume()
to tweak playback volume easily from the client side. I'm here to help! Just let me know if you'd like me to walk you through detailed steps for either option or if you have a particular scenario in mind. Your comfort with this is important to me. Sources: .cursor/rules/agent-core.mdc | src/room/track/RemoteAudioTrack.ts | livekit-agents/livekit/agents/voice/background_audio.py | Agent speech and audio | LiveKit Docs
a
what is the default value for volume?
t
Just so you know, the default volume value for agents in LiveKit is set to 1.0. This covers both the agent's speech and the background audio settings. If you have any questions about adjusting these, I’m here to help! Sources: Agent speech and audio | LiveKit Docs | livekit-agents/livekit/agents/voice/room_io/room_io.py