Align
Word timestamps on device, for any transcriber. Cut, caption, and highlight on the word, with 3x tighter timings, from 0.7MB.

Accurate word timestamps for any transcript.
Apple says "world" runs from 2.61 to 3.04 seconds. Align says 2.57 to 2.98. Cut there and the cut is clean, the caption lights up on the word, and the highlight starts where the speaker did.
Keep Apple's transcriber. Align reads the same audio SpeechAnalyzer already gets and returns the same words with tighter start and end times, in a few milliseconds, from a 0.7MB download. On clean audio across nine languages, that takes the average miss from 124ms to 44ms.
A word Align can't improve keeps Apple's timing, so a correction can only help or leave the word alone. Nine languages, and a locale outside them passes through with Apple's timings untouched.
Word timings three times tighter.
On clean audio across nine languages, word timings are off by 124.2ms on average before Align and 43.9ms after, a 65% cut, from a 0.7MB model.
Mean absolute distance from the word boundary, on 258 boundaries across 10 recordings that a person corrected by hand against the waveform
| System | Error | Within 50ms |
|---|---|---|
| Raw Whisper | 100.8ms | 43% |
| WhisperX | 53.5ms | 67% |
| Align | 45.0ms | 76% |
The nine-language figures come from the training-time reference and are scored against a forced aligner, not human annotations. They show a consistent cut in timing error, not sample-accurate ground truth. The comparison table is scored on 258 word boundaries a person corrected by hand, where the on-device Core ML runtime scores 44.8ms.
Use cases
Accurate word timestamps for any transcript.
Word-by-word captions that keep up
Light up each word as it is said in a captions view, a karaoke-style lyric screen, or a language-learning app, from Apple's transcript. The timings land on the word instead of a tenth of a second off it.
Cut a clip on a word
Trim a recording to a quote in a podcast editor or a video app and have the cut start where the word starts. No frame of the previous word, no clipped consonant, and no manual nudge on the timeline.
Highlight the spoken word in a transcript
Scroll a transcript in step with playback in a meeting recorder or a lecture app, with the highlight moving on the word rather than drifting ahead of the audio.
Search that lands on the moment
Jump to the second a word was said in an archive of recordings, on the device. The timings are tight enough that the playhead starts on the word and not in the middle of the previous one.
Inspiration
Ideas to build with Align. Copy a prompt into your coding agent and go.
Highlight each word as it's spoken, timed to the audio.
Tighten a system transcriber's word timings so captions land on the word.
Build a text-based video editor where selecting words trims the clip.
Add bouncing word-by-word captions to vertical videos.
Make transcript search jump the audio to the exact word.
What the model does
- Corrects the word-level timings Apple's
SpeechTranscriberandSpeechAnalyzerreturn, without replacing them: same words, same result surface, tighteraudioTimeRangevalues. - Mean timing error on clean audio from 124.2ms to 43.9ms, macro-averaged across all nine languages so no single language carries the figure. On noisy audio, 88.3ms to 33.4ms.
- On 258 word boundaries a person corrected by hand against the waveform, 76% land within 50ms, against 43% for raw Whisper timings and 67% for WhisperX.
- A structural fallback keeps Apple's original timestamp whenever a correction would be invalid, hits the search window's edge, or lacks streaming context.
- Nine languages: English, Spanish, French, Italian, Portuguese, German, Japanese, Korean, and Chinese. Other locales pass through unchanged.
- About 0.7MB of compiled Core ML in two stages, run on the CPU and Neural Engine; a typical result is refined in a few milliseconds.
Getting started
Add word timestamps to your iOS or macOS, Android or web app in a few lines of code. Align docs.
// Swift Package Manager
.package(url: "https://github.com/Desert-Ant-Labs/desert-ant-core.git", from: "6.0.0")
// target dependency
.product(name: "Align", package: "desert-ant-core")
import Align
let align = Align()
guard try await align.isSupported(languageCode: "en") else { return words }
let fixed = try await align.refine(words, audio: samples, sampleRate: 16_000, languageCode: "en")
Add Align from Desert Ant Labs to this Swift project (iOS, macOS, Linux, Windows). What it does: On-device Word Timestamps for Any Transcript. SDK: Swift (iOS, macOS, Linux, Windows) Repo: https://github.com/Desert-Ant-Labs/desert-ant-core#readme // Swift Package Manager .package(url: "https://github.com/Desert-Ant-Labs/desert-ant-core.git", from: "6.0.0") // target dependency .product(name: "Align", package: "desert-ant-core") Reference: - Model page: https://desertant.com/models/align/ - Full catalog and other models: https://desertant.com/llms.txt Add the SDK, then follow its README for the exact API and current version. Do not invent API names or method signatures; confirm them against the README.
// build.gradle.kts (Maven Central)
implementation("ai.desertant:align:6.0.0")
import ai.desertant.align.Align
val align = Align(context)
val fixed = align.refine(samples, 16_000.0, words, language = "en")
align.close()
Add Align from Desert Ant Labs to this Kotlin project (Android).
What it does: On-device Word Timestamps for Any Transcript.
SDK:
Kotlin (Android)
Repo: https://github.com/Desert-Ant-Labs/desert-ant-core#readme
// build.gradle.kts (Maven Central)
implementation("ai.desertant:align:6.0.0")
Reference:
- Model page: https://desertant.com/models/align/
- Full catalog and other models: https://desertant.com/llms.txt
Add the SDK, then follow its README for the exact API and current version. Do not invent API names or method signatures; confirm them against the README.
npm i @desert-ant-labs/align
import { Align } from "@desert-ant-labs/align/native";
const align = await Align.load();
const fixed = await align.refine(samples, 16000, words, { language: "en" });
align.dispose();
Add Align from Desert Ant Labs to this JavaScript / TypeScript project (Web, Node.js). What it does: On-device Word Timestamps for Any Transcript. SDK: JavaScript / TypeScript (Web, Node.js) Repo: https://github.com/Desert-Ant-Labs/desert-ant-core#readme npm i @desert-ant-labs/align Reference: - Model page: https://desertant.com/models/align/ - Full catalog and other models: https://desertant.com/llms.txt Add the SDK, then follow its README for the exact API and current version. Do not invent API names or method signatures; confirm them against the README.
Specs
- Accuracy
- 43.9ms mean error across all nine languages on clean audio, down from 124.2ms before refinement, and 45.0ms on hand-corrected English boundaries
- On-device size
- About 0.7MB compiled Core ML (two 0.3MB stages plus the filter bank and calibrator)
- Languages
- English, Spanish, French, Italian, Portuguese, German, Japanese, Korean, Chinese
- Model
- Two-stage coarse-to-fine cascade over a log-mel spectrogram, with a gradient-boosted calibrator
- Platforms
- iOS 26, macOS 26, tvOS 26, visionOS 26 on Core ML, plus Android, Linux, Windows, and Node on LiteRT
Align corrects a transcriber's timings; it doesn't transcribe. The StreamingRefiner that attaches to Apple's SpeechAnalyzer needs iOS 26, macOS 26, tvOS 26, or visionOS 26.
The offline Align.refine corrects any transcript's words on its own, and runs on Linux, Windows, and Node through LiteRT.
Align can't promise to improve every word. The fallback that keeps the original timing catches corrections that look unsafe, not every wrong one.
Spoken numbers are the weakest case: on a small sample, refinement moved digit boundaries further from the reference than leaving them alone.
FAQ
What is Align?
Word timestamps on device, for any transcriber. Cut, caption, and highlight on the word, with 3x tighter timings, from 0.7MB.
Does Align run on device?
Yes. Align runs on the device, with no server call, so the data stays with the user.
Which platforms does Align support?
Align ships as a native on-device SDK for Swift, Kotlin, JavaScript / TypeScript.
How much does Align cost?
Free up to 100k monthly active devices across models. Unlimited inference. Contact us for custom licenses.
How accurate or fast is Align?
On clean audio across nine languages, word timings are off by 124.2ms on average before Align and 43.9ms after, a 65% cut, from a 0.7MB model.