user mic volume changes
# support
j
Does websdk proivde this similar to assistant volume?
v
Hi @jnetic_, I'm an AI assistant for Vapi. I'll analyze available sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Web SDK]() * [Vapi Web SDK]() * [Web Snippet]() * [Client SDKs]() -----------------------------
### Answer The Vapi Web SDK provides functionality to mute and unmute the user's microphone but does not provide a method to directly adjust the microphone volume level like it does for the assistant's volume level. You can mute or unmute the user's microphone using the
.setMuted
method [(1)]() . Here's how you can use it:
Copy code
javascript
vapi.setMuted(true); // Mute the user's microphone
vapi.setMuted(false); // Unmute the user's microphone
For adjusting the volume level of the user's microphone, such functionality would need to be handled by other means outside of the Vapi Web SDK, possibly at the browser or operating system level.
j
I want to show mic input visualizer when user speaks
s
in the websdk you can get the volume level based on that you can generate the graph
j
I'm only seeing volume level from assistant and not volume level of mic input from user?
s
You can look for some workarounds through which you can check the volume level of mic input as well.
Like we don't provide that in our SDK.
You can put the feature request here
6 Views