# VoiceActivityDetector::Levels

<a id="levels"></a>

# Levels

```cpp
#include <icy/speech/voiceactivitydetector.h>

struct Levels
```

[Defined in src/speech/include/icy/speech/voiceactivitydetector.h:61](https://github.com/auscaster/icey/blob/main/src/speech/include/icy/speech/voiceactivitydetector.h#L61)

The mean absolute level and the peak measured from one packet.

## Public Attributes

| Return | Name | Description |
|--------|------|-------------|
| `float` | [`level`](#level-3)  |  |
| `float` | [`peak`](#peak-1)  |  |
| `bool` | [`valid`](#valid-9)  |  |

---

<a id="level-3"></a>

### level

```cpp
float level = 0.0f
```

[Defined in src/speech/include/icy/speech/voiceactivitydetector.h:63](https://github.com/auscaster/icey/blob/main/src/speech/include/icy/speech/voiceactivitydetector.h#L63)

---

<a id="peak-1"></a>

### peak

```cpp
float peak = 0.0f
```

[Defined in src/speech/include/icy/speech/voiceactivitydetector.h:64](https://github.com/auscaster/icey/blob/main/src/speech/include/icy/speech/voiceactivitydetector.h#L64)

---

<a id="valid-9"></a>

### valid

```cpp
bool valid = false
```

[Defined in src/speech/include/icy/speech/voiceactivitydetector.h:65](https://github.com/auscaster/icey/blob/main/src/speech/include/icy/speech/voiceactivitydetector.h#L65)
