# Function bindings::zaun::bot::audio::open

> Opens the stream in the bot's voice channel, pausing the player. `CONFLICT` when the bot is in no voice channel or a stream is open; `UNSUPPORTED` for a format the host cannot take

`zaun_bot::bindings::zaun::bot::audio::open` · Function

```rust
pub fn open(options: &StreamOptions) -> Result<(), HostError>
```

Opens the stream in the bot's voice channel, pausing the player. `CONFLICT` when the
bot is in no voice channel or a stream is open; `UNSUPPORTED` for a format the host
cannot take; `BAD_REQUEST` for a rate, channel count or low-water mark out of range.

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