{"slug": "run-inworld-voice-isolator-on-apple-silicon-with-core-ml", "title": "Run Inworld Voice Isolator on Apple Silicon with Core ML", "summary": "Inworld Voice Isolator v1 has been converted to Core ML in both offline and realtime versions so the speech-separation model can run from Swift on Apple Silicon, according to the speech-swift library's published model cards on Hugging Face. Both checkpoints accept mono audio at 48 kHz, begin with a 2,048-point short-time Fourier transform that takes a new frame every 480 samples (10 ms), and split the spectrum into 46 bands that an encoder maps to 512 values each. The conversion matters because it lets podcast editors, lyric-extraction tools, live captioning apps and voice agents run voice isolation locally on Apple hardware rather than in the cloud.", "body_md": "# Run Inworld Voice Isolator on Apple Silicon with Core ML\n\nA podcast editor has the whole recording available before export. A live captioning app needs cleaned audio while the person is still speaking. We converted both versions of Inworld Voice Isolator v1 to Core ML so they can run from Swift on Apple Silicon. Both models take mono audio at 48 kHz. [Inworld model card](https://github.com/inworld-ai/voice-isolator/blob/c73b3fab81a870410cbac50d2f05f25edc4d10aa/MODEL_CARD.md)\n\n[speech-swift library](https://github.com/soniqo/speech-swift) · [Offline model card on Hugging Face](https://huggingface.co/aufklarer/Inworld-Voice-Isolator-v1-CoreML) · [Streaming model card on Hugging Face](https://huggingface.co/aufklarer/Inworld-Voice-Isolator-v1-Realtime-CoreML)\n\n## Where it fits in an app\n\n| Use case | Where the model goes | What to check before shipping | \n|---|---|---|\n| Podcast, interview, or video editing | Run the offline bundle on the recorded voice track before export. Keep the original track available for an A/B listen. | Listen to quiet words, breaths, and edits between speakers. Check memory and throughput on the longest files your app accepts. | \n| Lyrics extraction and vocal isolation | Run the offline bundle on a 48 kHz mono mix to isolate the foreground vocal. Transcribe the isolated audio to get the lyrics. For synced lyrics, align the transcript to the song. | Check the words and timing against the original mix. Listen for missing consonants, harmonies that come through, and instrument bleed. | \n| Dictation, live captions, or a voice agent | Put the realtime bundle between microphone capture and speech recognition. Resample its output if the recognizer expects a different rate. | Compare word errors on the same clips with and without isolation. Measure time from capture to the first text and check for late audio blocks. | \n| Calls and meeting capture | Use the realtime bundle on the local mic after echo cancellation if your app already uses it. For meeting recordings, work on individual tracks when available. | Replay overlapping speech at different levels. Check which voices make it through and profile memory at the number of concurrent streams your app needs. | \n\nRelative voice level matters in calls. Inworld reports that a louder speaker can stay clear while a quieter overlapping voice is suppressed. Voices at similar levels often both come through. If your app needs every participant, test the mix at different microphone gains before deciding where to insert isolation. [Inworld checkpoint behavior](https://github.com/inworld-ai/voice-isolator/blob/c73b3fab81a870410cbac50d2f05f25edc4d10aa/MODEL_CARD.md#two-checkpoints)\n\nInworld included singing in training. To audition a backing-track residual, subtract the isolated vocal sample by sample from the same time-aligned mono mix. [Inworld model notes](https://github.com/inworld-ai/voice-isolator/blob/c73b3fab81a870410cbac50d2f05f25edc4d10aa/MODEL_CARD.md)\n\n## Model architecture\n\nBoth checkpoints start with a 2,048-point short-time Fourier transform (STFT) and take a new frame every 480 samples, or 10 ms at 48 kHz. Each frame describes the audio in 1,025 frequency bins.\n\nA **band** is a range of neighboring frequency bins. Inworld uses 46 bands, from roughly 100 Hz wide at low frequencies to 2 kHz wide at the high end. The encoder maps each band to 512 values, giving the model a fixed-size input for each band in each frame. [Inworld model architecture](https://github.com/inworld-ai/voice-isolator/blob/c73b3fab81a870410cbac50d2f05f25edc4d10aa/MODEL_CARD.md#architecture)\n\nSeven blocks process those vectors along time and across frequency bands. Four Transformer blocks attend to frames within each band, then attend across bands within a frame. The three alternating Mamba blocks scan the same axes with a 16-value state per channel. Each band head predicts a complex mask adjustment and an additive residual. The inverse STFT turns the corrected spectrum back into audio.\n\n### What changes when the mic is live\n\nThe **offline model** can look backward and forward within each eight-second window. This lets it use later sounds to help clean an earlier part of the recording. On a long file, it blends neighboring windows where they overlap by two seconds.\n\nThe **realtime model** works forward through the audio and keeps a short history. Its look-ahead setting gives it 0, 20, or 40 ms of later audio to work with before it sends back the cleaned sound. It can still scan the frequency bands in both directions because all the bands in a frame are available at once. [Inworld checkpoint behavior](https://github.com/inworld-ai/voice-isolator/blob/c73b3fab81a870410cbac50d2f05f25edc4d10aa/MODEL_CARD.md#two-checkpoints)\n\nThe offline model has 64.0 million parameters and the realtime model has 58.2 million. In Swift, Accelerate handles the audio transforms, and Core ML and Metal run the model layers. [Swift implementation](https://github.com/soniqo/speech-swift/blob/main/docs/inference/inworld-voice-isolator.md#core-ml-bundle)\n\n## Isolate a voice in a recording\n\nThe offline download includes a source patch and build instructions for `speech-swift`. The CLI writes a 48 kHz mono Float32 WAV. [Offline model and build instructions](https://huggingface.co/aufklarer/Inworld-Voice-Isolator-v1-CoreML/tree/main)\n\n```\nhf download aufklarer/Inworld-Voice-Isolator-v1-CoreML \\\n  --local-dir ./InworldVoiceIsolator-LowMemory-CoreML\n\nspeech denoise noisy.wav --engine inworld \\\n  --model ./InworldVoiceIsolator-LowMemory-CoreML -o voice.wav\n```\n\nOn our M5 Pro, the offline model took **2.84 seconds** to clean an 11-second recording after warm-up. That’s about four seconds of audio per second of processing. Peak memory use was 1.24 GB. [Offline benchmark](https://github.com/soniqo/speech-swift/blob/10da41f6856830900e716d718ab96d71f903a800/docs/benchmarks/inworld-voice-isolator.md#live-stream-alignment)\n\n## Use the realtime model from Swift\n\nInworld reports **63 ms of built-in delay** at the default 20 ms of look-ahead. The time to first audio in Swift depends on how much audio goes into its first call and how long that call takes. The realtime download includes the Swift source patch used in this example. [Inworld checkpoint behavior](https://github.com/inworld-ai/voice-isolator/blob/c73b3fab81a870410cbac50d2f05f25edc4d10aa/MODEL_CARD.md#two-checkpoints) · [Realtime model](https://huggingface.co/aufklarer/Inworld-Voice-Isolator-v1-Realtime-CoreML/tree/main)\n\n```\nhf download aufklarer/Inworld-Voice-Isolator-v1-Realtime-CoreML \\\n  --local-dir ./InworldVoiceIsolator-Realtime-Fast-CoreML\n```\n\nCall `prepare()` before capture, then read `preferredPushSamples` for each push. The compiled bundle runs eight 10 ms frames per call. The first push needs 4,384 samples, or 91.3 ms of audio at 48 kHz, to fill those first eight frames. Later full pushes contain 3,840 samples, or 80 ms. In the example, `pcmChunks` supplies the captured audio and `consume` takes the isolated output.\n\n``` python\nimport Foundation\nimport SpeechEnhancement\n\nlet stream = try InworldVoiceIsolatorStream(\n    modelDirectory: URL(fileURLWithPath: \"./InworldVoiceIsolator-Realtime-Fast-CoreML\")\n)\ntry stream.prepare()\nvar pending: [Float] = []\nfor chunk in pcmChunks {\n    pending.append(contentsOf: chunk)\n    while pending.count >= stream.preferredPushSamples {\n        let count = stream.preferredPushSamples\n        consume(try stream.push(Array(pending.prefix(count))))\n        pending.removeFirst(count)\n    }\n}\nconsume(try stream.push(pending))\nconsume(try stream.flush())\n```\n\n## How quickly does live audio come back?\n\nOn our M5 Pro, the first cleaned audio arrived about an eighth of a second after capture started (**123–128 ms**). We fed in recordings at the pace of a live microphone and warmed up the model before timing it.\n\nOn the 99-second replay, 57 of the 1,236 full audio blocks after the first came back past their 80 ms deadline. Late audio can delay captions or leave gaps if live playback runs out of buffered sound. [Paced streaming results](https://github.com/soniqo/speech-swift/blob/10da41f6856830900e716d718ab96d71f903a800/docs/benchmarks/inworld-voice-isolator.md#live-stream-alignment)\n\n## Memory during live use\n\nThe realtime model keeps a short history to help clean the next bit of audio. In Swift, it can make room for that history as needed. Once the space fills up, the model reuses it as new audio arrives.\n\nOn our M5 Pro, the three-second test peaked at about **540 MB** when Swift made room as it went. Setting aside the whole space at the start used **714 MB** for the same clip. In the 33-second test, both peaked at about **730 MB**.\n\n## Source\n\nInworld trained and published both Apache 2.0 checkpoints. Each Core ML export includes the upstream license and notices and identifies its checkpoint by hash. [Upstream checkpoints](https://huggingface.co/inworld/voice-isolator/tree/9b0285b3fe8403aa8e2f1dbb2165a80a4294c970) · [Swift runtime](https://github.com/soniqo/speech-swift)\n\nBoth Swift builds passed tests against Inworld’s reference audio. In the realtime model, changing how Swift grouped the input gave the same result on the clean and noisy clips we tried in six languages. [Swift benchmark report](https://github.com/soniqo/speech-swift/blob/10da41f6856830900e716d718ab96d71f903a800/docs/benchmarks/inworld-voice-isolator.md)", "url": "https://wpnews.pro/news/run-inworld-voice-isolator-on-apple-silicon-with-core-ml", "canonical_source": "https://soniqo.audio/blog/inworld-voice-isolator-coreml", "published_at": "2026-12-06 10:14:03+00:00", "updated_at": "2026-12-06 10:45:21.591884+00:00", "lang": "en", "topics": ["artificial-intelligence", "machine-learning", "ai-tools", "developer-tools"], "entities": ["Inworld", "Inworld Voice Isolator v1", "Core ML", "Apple Silicon", "speech-swift", "Hugging Face", "Swift"], "also_reported_by": [], "takeaway": "The Core ML conversion ships offline and realtime Inworld Voice Isolator v1 bundles that take 48 kHz mono audio, so Swift apps can insert isolation before export or between microphone capture and speech recognition.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/run-inworld-voice-isolator-on-apple-silicon-with-core-ml", "markdown": "https://wpnews.pro/news/run-inworld-voice-isolator-on-apple-silicon-with-core-ml.md", "text": "https://wpnews.pro/news/run-inworld-voice-isolator-on-apple-silicon-with-core-ml.txt", "jsonld": "https://wpnews.pro/news/run-inworld-voice-isolator-on-apple-silicon-with-core-ml.jsonld"}}