How to control volume of local participant
# ask-ai
s
How to control volume of local participant
✅ 1
t
Thanks for reaching out, Gurkirat. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I’m responding to your question about controlling the local participant’s volume. Short answer: there isn’t a simple SDK method to set a local participant’s input volume directly. What you can do instead depends on your platform: • Web (JavaScript): the SDK doesn’t expose a
setVolume()
for local audio. Use browser/OS mic settings or apply gain using the Web Audio API before publishing the track (create a MediaStreamSource → GainNode → destination). • Mobile (iOS/Android/Flutter): there’s no direct SDK API to change local input volume. Use system microphone settings or implement custom audio pre-processing on the device if you need gain control. • If you only need mute/unmute: use the SDK’s microphone enable/mute method (e.g.,
setMicrophoneEnabled()
). Would you like a short code example for the Web Audio API approach or tell me which platform/framework you’re using (web, iOS, Android, Flutter)? I’ll provide targeted steps. Sources: Agent speech and audio | LiveKit Documentation, with interactive elements