File size: 599 Bytes
37c4768
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# DiariZen C++ SDK

CPU+NPU hybrid speaker diarization segmentation inference.

## Build (native)

```bash
cmake -S . -B build -DAX_RUNTIME_ROOT=/path/to/ax_engine
cmake --build build
```

## Cross-compile for AX650

```bash
cmake -S . -B build_aarch64 \
    -DCMAKE_TOOLCHAIN_FILE=toolchain-aarch64.cmake \
    -DAX_RUNTIME_ROOT=/path/to/ax_engine_aarch64
cmake --build build_aarch64
```

## Usage

```cpp
#include "diarizen_segmenter.h"

diarizen::DiarizenSegmenter seg("cnn_features.axmodel", "backend.onnx");
auto result = seg.run(audio, 64000);
// result.log_probs: 199 * 11 float32 values
```