DiariZen / cpp /README.md
inoryQwQ's picture
Upload folder using huggingface_hub
37c4768 verified
|
Raw
History Blame Contribute Delete
599 Bytes
# 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
```