# Struct audio::PcmFormat

> PCM the host encodes to Opus.

`zaun_bot::audio::PcmFormat` · Struct

```rust
pub struct PcmFormat { … }
```

PCM the host encodes to Opus.

## Fields

### `sample_rate: u32`

8000, 12000, 16000, 24000 or 48000 Hz (Opus's own rates; nothing is resampled).

### `channels: u8`

1 (mono) or 2 (stereo, interleaved left-right).

## Trait implementations

`Clone`, `Copy`, `Debug`

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