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)

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

Cross-compile for AX650

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

Usage

#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