# Function bindings::zaun::bot::voice::set_volume

> Sets the playback volume, 0-200 % (100 when the bot joins; `BAD_REQUEST` above 200). Changing it means decoding and re-encoding the Opus audio, so hosts without an Opus encoder ans

`zaun_bot::bindings::zaun::bot::voice::set_volume` · Function

```rust
pub fn set_volume(percent: u16) -> Result<(), HostError>
```

Sets the playback volume, 0-200 % (100 when the bot joins; `BAD_REQUEST` above 200).
Changing it means decoding and re-encoding the Opus audio, so hosts without an Opus
encoder answer `UNSUPPORTED`: call it anyway and tell the member.

[Full rustdoc page](/docs/api/rust/zaun-bot/zaun_bot/bindings/zaun/bot/voice/fn.set_volume.html)
