speaker-diarization
Use for NeMo Speech speaker recognition, diarization, VAD, Sortformer, speaker embeddings, ASR+diarization scoring, forced alignment, RTTM/CTM manifests, and speaker workflow troubleshooting.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- speaker-diarization
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Use for NeMo Speech speaker recognition, diarization, VAD, Sortformer, speaker embeddings, ASR+diarization scoring, forced alignment, RTTM/CTM manifests, and speaker workflow troubleshooting.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/data-formats.md10.6 KB
- 参考文档references/forced-alignment.md8.9 KB
- 参考文档references/troubleshooting.md11.3 KB
- 参考文档references/workflows.md15.2 KB
- 脚本scripts/check_speaker_manifest.py24.7 KB
03 SKILL.md 正文
Speaker Diarization
Use this sub-skill for NeMo Speech speaker workflows: speaker recognition and verification, speaker embedding extraction, clustering diarization, Sortformer end-to-end diarization, VAD-backed diarization, ASR plus diarization transcript scoring, forced alignment manifests and CTM/ASS outputs, RTTM handling, and speaker workflow troubleshooting.
Route elsewhere when the task is mostly general ASR transcription, ASR fine-tuning, or decoding; generic manifest sharding/tokenizer utilities; audio enhancement; or repository build/test work. For ASR model selection, decoding, timestamps, and fine-tuning, use ../asr/SKILL.md.
Start Here
- Read
references/workflows.mdto choose between Sortformer, clustering diarization, speaker recognition, VAD, ASR+diarization, and forced-alignment workflows. - Read
references/data-formats.mdbefore creating or debugging manifests, RTTM, CTM, UEM, speaker labels, or output file paths. - Read
references/forced-alignment.mdfor NeMo Forced Aligner concepts, manifest requirements, CTM/ASS output contracts, and EOU alignment notes. - Read
references/troubleshooting.mdwhen imports, optional dependencies, CUDA, manifests, Hydra overrides, VAD/clustering, Sortformer, ASR+diarization, or forced alignment fail. - Run
scripts/check_speaker_manifest.py --helpbefore long diarization, recognition, VAD, or forced-alignment runs.
Safe Bundled Tool
scripts/check_speaker_manifest.pyvalidates JSONL manifests and common output path fields without importing NeMo, reading audio, downloading checkpoints, training, or writing outputs.- Example:
python scripts/check_speaker_manifest.py manifest.json --task diarization-eval --require-rttm --check-rttm-speakers --require-matching-basename.
Core Facts
- Installed package evidence verified
nemo-toolkitversion3.1.0+8f85359from editable source-backed code. NeMo Speech docs currently target Python 3.12+, PyTorch 2.7+, and GPU/CUDA for training; GPU is strongly recommended for inference. - Speaker recognition uses
nemo.collections.asr.models.EncDecSpeakerLabelModelfor TitaNet, ECAPA-TDNN, SpeakerNet, embeddings, verification, and batch inference. - End-to-end diarization uses
nemo.collections.asr.models.SortformerEncLabelModel; offline and streaming Sortformer variants emit speaker segments such as[begin_seconds, end_seconds, speaker_index]. - Cascaded diarization uses
nemo.collections.asr.models.ClusteringDiarizerwith VAD, speaker embeddings, and clustering. It can also combine ASR word timestamps with diarization labels for speaker-attributed transcripts and cpWER-style evaluation. - Forced alignment uses CTC ASR models to align audio to reference text or ASR-predicted text and can emit CTM and ASS outputs. The long source aligner scripts are reference-only in this skill; use the bundled references for config and data contracts.
Evidence Base
This sub-skill distills repository evidence from docs/source/asr/speaker_diarization/**, docs/source/asr/speaker_recognition/**, docs/source/asr/speech_classification/**, examples/speaker_tasks/**, scripts/speaker_tasks/**, scripts/voice_activity_detection/**, tools/nemo_forced_aligner/**, nemo/collections/asr/models/label_models.py, nemo/collections/asr/models/sortformer_diar_models.py, tests/collections/speaker_tasks/**, and tools/nemo_forced_aligner/tests/**. Runtime guidance is self-contained; future agents should not need to reopen those source files.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).