# Enum audio::AudioFormat

> How the bot's audio is encoded.

`zaun_bot::audio::AudioFormat` · Enum

```rust
pub enum AudioFormat { … }
```

How the bot's audio is encoded.

## Variants

### `Opus`

Opus packets (2.5-120 ms each, at most 1000 bytes), sent as they are.

### `Pcm(PcmFormat)`

Signed 16-bit PCM, encoded to Opus by the host: `UNSUPPORTED` on hosts without an
Opus encoder.

## Trait implementations

`Clone`, `Copy`, `Debug`

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