Skip to content

Fix inverted speaker-separation slider in diarization settings#14

Merged
execsumo merged 1 commit into
masterfrom
claude/debug-diarization-issue-b0zGQ
May 19, 2026
Merged

Fix inverted speaker-separation slider in diarization settings#14
execsumo merged 1 commit into
masterfrom
claude/debug-diarization-issue-b0zGQ

Conversation

@execsumo

Copy link
Copy Markdown
Owner

FluidAudio's OfflineDiarizerConfig(clusteringThreshold:) is a cosine
similarity (merge when cos_sim >= threshold), not a cosine distance.
The setting, slider labels, docstrings, and default were all wired up
with the opposite assumption, so picking a "more speakers" value on the
slider actually produced more merging and collapsed remote speakers
into a single cluster.

Rename to diarizationClusteringSimilarity, flip the slider labels,
shift the range to 0.40-0.85, raise the default to 0.65 (slightly
stricter than FluidAudio's 0.6, matching the original intent), and
correct the docstrings.

FluidAudio's OfflineDiarizerConfig(clusteringThreshold:) is a cosine
similarity (merge when cos_sim >= threshold), not a cosine distance.
The setting, slider labels, docstrings, and default were all wired up
with the opposite assumption, so picking a "more speakers" value on the
slider actually produced more merging and collapsed remote speakers
into a single cluster.

Rename to diarizationClusteringSimilarity, flip the slider labels,
shift the range to 0.40-0.85, raise the default to 0.65 (slightly
stricter than FluidAudio's 0.6, matching the original intent), and
correct the docstrings.
@execsumo
execsumo merged commit 788e010 into master May 19, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants