Join the conversation

Join the community of Machine Learners and AI enthusiasts.

Sign Up
aufklarer 
posted an update 1 day ago
Post
4,459
Run Inworld Voice Isolator v1 on Apple Silicon with Core ML

We’ve released two Core ML bundles for Inworld Voice Isolator v1. Both run locally from Swift on Apple Silicon and take 48 kHz mono audio. Inworld trained and released the original checkpoints under Apache 2.0. inworld/voice-isolator

- Offline for cleaning up a recorded interview, podcast, or voice track before export. aufklarer/Inworld-Voice-Isolator-v1-CoreML
- Realtime for cleaning microphone audio as it comes in for live captions or speech recognition. aufklarer/Inworld-Voice-Isolator-v1-Realtime-CoreML

Each download includes the compiled model, a speech-swift source patch, and build instructions.

On our M5 Pro, the offline model processed an 11-second recording in 2.84 seconds after warm-up, with 1.24 GB peak memory use. In a paced replay, the warmed realtime model returned its first cleaned audio 123–128 ms after capture began. In the 99-second replay, 57 of 1,236 later full blocks missed their 80 ms deadline. https://github.com/soniqo/speech-swift/blob/10da41f6856830900e716d718ab96d71f903a800/docs/benchmarks/inworld-voice-isolator.md#live-stream-alignment

The full write-up includes Inworld’s architecture diagram, a command-line example for recordings, and a Swift example for live audio. https://soniqo.audio/blog/inworld-voice-isolator-coreml

The deadline-miss count is a useful inclusion. A fast average can look reassuring while a few late blocks still spoil a live stream. Having both the offline timing and the paced replay numbers makes this much easier to judge.

Were the late blocks scattered across the 99-second replay, or mostly clustered in a few stretches? That would help tell whether a small playout buffer could absorb them or whether the pipeline needs time to catch back up.

·

The biggest delays came in one stretch. About 34 seconds into the original replay, 27 blocks came back late in a row. One waited about half a second for the blocks ahead of it. A small playback buffer would have run out during that stretch.

We reran the same 99 seconds on our M5 Pro. With the default setting, 92 blocks came back late, 87 of them during crossfades. With batching, 17 came back late and all were outside crossfades. That run still had five late blocks in a row elsewhere.

The extra memory lets the model run both sides of each crossfade together. Peak memory went from 0.75 GB to 1.13 GB. In the local Swift build, you can turn it on with batchCrossfades: true and call prepare() before capture. It works with the existing Core ML bundle.

In this post