|
Download cpp/README.md from AXERA-TECH/DiariZen: direct link, hf CLI and curl.
- Browser
- Download file 599 Bytes
-
https://huggingface.co/AXERA-TECH/DiariZen/resolve/main/cpp/README.md
- Command line
-
hf download hf://AXERA-TECH/DiariZen/cpp/README.md
-
curl -L -o README.md https://huggingface.co/AXERA-TECH/DiariZen/resolve/main/cpp/README.md
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