Downloads · 30 days
108
13% of all-time downloads
mlx-community/diar_sortformer_4spk-v1-fp16
diar_sortformer_4spk-v1-fp16 is a voice activity detection model from mlx-community. Use it for the voice activity detection task on the model card, and read the license before you ship it in a product. It is set up for mlx-audio.
This model was converted to MLX format from nvidia/diarsortformer4spk-v1 using mlx-audio version 0.3.2.
Downloads · 30 days
108
13% of all-time downloads
All-time downloads
813
Public
Parameters
124M
247 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors247 MB · 100%
From the Hugging Face model README
This model was converted to MLX format from nvidia/diar_sortformer_4spk-v1 using mlx-audio version 0.3.2.
Refer to the original model card for more details on the model.
pip install -U mlx-audio
from mlx_audio.vad import load
model = load("mlx-community/diar_sortformer_4spk-v1-fp16")
result = model.generate("meeting.wav", threshold=0.5, verbose=True)
print(result.text)
for seg in result.segments:
print(f"Speaker {seg.speaker}: {seg.start:.2f}s - {seg.end:.2f}s")
from mlx_audio.vad import load
model = load("mlx-community/diar_sortformer_4spk-v1-fp16")
for result in model.generate_stream("meeting.wav", chunk_duration=5.0):
for seg in result.segments:
print(f"Speaker {seg.speaker}: {seg.start:.2f}s - {seg.end:.2f}s")
from mlx_audio.vad import load
model = load("mlx-community/diar_sortformer_4spk-v1-fp16")
state = model.init_streaming_state()
for chunk in mic_stream(): # your audio source
result, state = model.feed(chunk, state, sample_rate=16000)
for seg in result.segments:
print(f"Speaker {seg.speaker}: {seg.start:.2f}s - {seg.end:.2f}s")
Ported from NVIDIA NeMo SortformerEncLabelModel.