sherpa-onnx C API 1.0
Public C API and C++ wrapper for sherpa-onnx
Loading...
Searching...
No Matches
sherpa_onnx::cxx::FastClusteringConfig Struct Reference

Fast clustering configuration. More...

#include <cxx-api.h>

Public Attributes

int32_t num_clusters = 0
 
float threshold = 0.5
 
bool compute_confidence = false
 

Detailed Description

Definition at line 1948 of file cxx-api.h.

Member Data Documentation

◆ compute_confidence

bool sherpa_onnx::cxx::FastClusteringConfig::compute_confidence = false

If true, each returned diarization segment carries a confidence value.

Definition at line 1955 of file cxx-api.h.

◆ num_clusters

int32_t sherpa_onnx::cxx::FastClusteringConfig::num_clusters = 0

Known number of speakers. If > 0, threshold-based clustering is bypassed.

Definition at line 1951 of file cxx-api.h.

◆ threshold

float sherpa_onnx::cxx::FastClusteringConfig::threshold = 0.5

Distance threshold used when the number of speakers is unknown.

Definition at line 1953 of file cxx-api.h.


The documentation for this struct was generated from the following file: