sherpa-onnx C API 1.0
Public C API and C++ wrapper for sherpa-onnx
Loading...
Searching...
No Matches
SherpaOnnxFastClusteringConfig Struct Reference

Fast clustering configuration. More...

#include <c-api.h>

Public Attributes

int32_t num_clusters
 
float threshold
 

Detailed Description

If num_clusters is greater than 0, threshold is ignored. When the number of speakers is known in advance, setting num_clusters is strongly recommended.

Definition at line 3791 of file c-api.h.

Member Data Documentation

◆ num_clusters

int32_t SherpaOnnxFastClusteringConfig::num_clusters

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

Definition at line 3794 of file c-api.h.

◆ threshold

float SherpaOnnxFastClusteringConfig::threshold

Distance threshold used when the number of speakers is unknown.

Definition at line 3796 of file c-api.h.


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