Speaker Diarization Community-1
Overview
On-device speaker diarization returns time intervals for anonymous speakers in recordings. Based on Speaker Diarization Community-1.
Demo recording:
Meeting excerpt from the AMI Meeting Corpus (AMI Consortium, CC BY 4.0); trimmed and edited for this walkthrough.
The model files use the AIDEM format and are loaded by the matching SDK in the Demo repository. The device needs Aidlux LMS (sudo lms check returns true); no separate QNN installation is required.
Download
First follow Install. Then, from the Demo root, download the shared files and one device target. The commands below use QCS8550; for another device, use the folder in the table below.
For a private model, run hf auth login first.
hf download APLUX-Pandora/speaker-diarization-community-1 --local-dir models --exclude "targets/*" --exclude "media/*" --exclude README.md --exclude .gitattributes
hf download APLUX-Pandora/speaker-diarization-community-1 --local-dir models --include "targets/qcs8550_qnn248/*"
| SoC | Target folder |
|---|---|
| QCS8550 | qcs8550_qnn248 |
| QCS9075 | qcs9075_qnn248 |
| QCS8625 | qcs8625_qnn248 |
| QCS8275 | qcs8275_qnn248 |
Demo and Python Usage
Complete Install and the download above, then follow Run the Web Demo. For Python, in the same environment:
from pandora_speaker_diarization_community_1 import DiarizationModel
with DiarizationModel.from_pretrained("models") as model:
result = model.diarize("examples/audio/meeting.wav")
for segment in result.segments:
print(segment.start, segment.end, segment.speaker)
License
The original model is licensed under CC BY 4.0. See NOTICE and LICENSES. The Pandora agreement applies only to contributions APLUX is entitled to license.