AIFeed

Show HN: Nvidia Nemotron 3 Diarization on Apple Core AI (Open Source)

Original text(via HN AI)

Nemotron 3 Diarization on Core AI

An open source Core AI port of NVIDIA's Nemotron 3 Diarization for Apple Silicon.

I released Hello Transcribe 5 a few weeks ago, which features diarization (i.e. speaker detection) for all transcription models, for live and recorded audio. I’m using NVIDIA Nemotron 3 Diarization to perform the speaker detection, and I ported the model to Core AI to run on Apple Silicon.

When I say “I ported”, I’m being generous, because it was mostly Claude using Apple’s Core AI agent skills. These skills work really well. I wanted to contribute this to the Apple Core AI models repo but the OpenMDW license on NVIDIA’s weights wasn’t acceptable, see the GitHub discussion.

The model is on Hugging Face.

The code is in my branch, and there’s an overview on the Nemotron 3 Diarization page.

Why port it to Core AI

My plan for Hello Transcribe 5 was actually not to add diarization, but serendipitously NVIDIA released this model while I was working on version 5 and it seemed like a great idea to add it. I had already implemented the Core AI versions of Parakeet and Whisper in Hello Transcribe so I had some experience.

The model running in Hello Transcribe actually uses a split export for the 4 modes because there was a bug with specialization, so I need to update it to this new unified model (it will decrease the download to 1/4 the current size).

Using it

Following the pattern of the models provided by Apple, you get the following in the branch:

Export the model

export.py converts the Hugging Face model, and verify.py checks a whole session against it, mode by mode. Or skip this and download the converted float16 bundle.


        git clone -b nemotron-3-diarization \
  https://github.com/bjnortier/coreai-models
cd coreai-models/models/nemotron3-diarization
uv run export.py
      

Command line

The diarization tool prints each turn, and writes RTTM or JSON for evaluation and pipelines. From the repository root:


        swift run -c release diarization \
  --diarization exports/nemotron-3-diarization_float16 \
  --audio meeting.wav --mode low_latency
      

Swift package

CoreAIDiarization loads the bundle and returns each speaker’s turns, or their activity every 10 ms:


        import CoreAIDiarization
import CoreAISpeech

let diarizer = try await Diarizer(
    bundleAt: bundleURL, mode: "low_latency")
let pcm = try MelSpectrogram.loadAndResample(
    audioURL, targetSampleRate: 16_000)
let (activity, _) = try await diarizer.diarize(pcm: pcm)
for turn in activity.segments() {
    print(turn.speaker, turn.start, turn.end)
}
      

Try N3D Demo

I built a SwiftUI demo app that you can run yourself, or there’s a public TestFlight build you can try.

N3D Demo on iPhone, showing the speaker timeline and speaker list
N3D Demo on iPhone, showing the speaker timeline and speaker list

And on macOS:

N3D Demo on Mac, showing a timeline with a row for each speaker, and each speaker’s talk time and turns
N3D Demo on Mac, showing a timeline with a row for each speaker, and each speaker’s talk time and turns

In Hello Transcribe 5

Speaker labeling in Hello Transcribe 5 identifies speakers for live or recorded audio. This is a PRO (paid) feature.

It works with all the transcription engines (Apple SpeechAnalyzer, Core AI Whisper & Parakeet, and whisper.cpp):

The transcript on iPhone, each turn labeled with its speaker
The transcript on iPhone, each turn labeled with its speaker

License

The N3D Demo app is open source under the MIT License.

The Nemotron 3 Diarization weights are NVIDIA’s, released under the OpenMDW License 1.1. The converted Core AI bundle is a conversion of those weights, so the same license applies to it.

My Core AI branch is under the same license as Apple’s Core AI models (BSD-3-Clause).

This is an independent project, not affiliated with or endorsed by NVIDIA or Apple.

Questions or feedback? Email me.

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by HN AI
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗