Parakeet.cpp – Parakeet ASR inference in pure C++ with Metal GPU acceleration
105 points by noahkay13 20 hours ago | 29 comments

noahkay13 20 hours ago
I built a C++ inference engine for NVIDIA's Parakeet speech recognition models using Axiom(https://github.com/Frikallo/axiom) my tensor library.

What it does: - Runs 7 model families: offline transcription (CTC, RNNT, TDT, TDT-CTC), streaming (EOU, Nemotron), and speaker diarization (Sortformer) - Word-level timestamps - Streaming transcription from microphone input - Speaker diarization detecting up to 4 speakers

reply
aaronbrethorst 16 hours ago
I see a number of references to macOS support in your docs for Axiom. Can this run on iOS?
reply
noahkay13 15 hours ago
Theoretically, yes? This hasent been tested but xcode has great c++ interop and the goal with Axiom and now parakeet.cpp is to be used for portable deployments so making that process easier is definitely on the roadmap.
reply
computerex 12 hours ago
Oh hey I just implemented this in golang. Mine implementation heavily optimized for cpu.
reply
pdyc 9 hours ago
can you share your repo.
reply
pzo 12 hours ago
You probably still better use inference on ANE (Apple Neural Engine) via CoreML rather than Metal - speed will be either similar or even faster on non-pro macbooks or iphones and power consumption significantly better. Metal or even MLX format doesn't have to be the fastest and the only way to access ANE is via CoreML.

Can use this library:

https://github.com/FluidInference/FluidAudio

reply
noahkay13 6 hours ago
The CoreML backend is WIP in Axiom and will roll over to parakeet.cpp when it's ready, the same with CUDA. FluidAudio is a great option for those building Mac-only apps, but the goal with Axiom and Parakeet.cpp is to be very portable and embeddable into almost any app. I will write C and Swift wrappers shortly, then if it's really wanted, a Python wrapper.
reply
ghostpepper 19 hours ago
Off topic but if anyone is looking for a nice web-GUI frontend for a locally-hosted transcription engine, Scriberr is nice

https://github.com/rishikanthc/Scriberr

reply
antirez 15 hours ago
Related:

https://github.com/antirez/qwen-asr

https://github.com/antirez/voxtral.c

Qwen-asr can easily transcribe live radio (see README) in any random laptop. It looks like we are going to see really cool things on local inference, now that automatic programming makes a lot simpler to create solid pipelines for new models in C, C++, Rust, ..., in a matter of hours.

reply
T0mSIlver 13 hours ago
Your voxtral.c work was a big motivator for me. I built a macOS menu bar dictation app (https://github.com/T0mSIlver/localvoxtral) around Voxtral Realtime, currently using a voxmlx fork with an OpenAI Realtime WebSocket server I added on top.

The thing that sold me on Voxtral Realtime over Whisper-based models for dictation is the causal encoder. Text streaming in as you speak rather than appearing after you stop is a fundamentally different UX. On M1 Pro with a 4-bit quant through voxmlx it feels responsive enough for natural dictation, though I haven't done proper latency benchmarks yet.

Integrating voxtral.c as a backend is on my roadmap, compiling to a single native binary makes it much easier to bundle into a macOS app than a Python-based backend.

reply
solarkraft 9 hours ago
> Text streaming in as you speak rather than appearing after you stop is a fundamentally different UX

100%. I don’t understand how people are able to compromise on this.

reply
pjmlp 14 hours ago
Which is why long term current programming languages will eventually become less relevant in the whole programming stack, as in get the computer to automate tasks, regardless how.
reply
FpUser 13 hours ago
Assuming RAM prices will not make it totally unaffordable. Current situation is atrocious and big infrastructure corps seem to love it, they do not want independent computing. Alternatively they might build specialized branded hardware which people could only use for what corps allow them to do for nice monthly fee.

Another problem is too much abstraction on input spec level. The other day I asked Claude to generate few classes. When reviewing the code I noticed it doing full scan for ranges on one giant set. This would bring my backend to a halt. After pointing it out to Claude it had smartened up to start with lower_bound() call. When there are no people to notice such things what do you think we are going to have?

reply
pjmlp 13 hours ago
Agreed, in regards to prices, it appears to be the new gold, lets see how this gets sorted out, with NPUs, FPGAs, analog (Cerebas),...

Now the abstraction I am with you on that, I foresee a more formal way to give specifications, but more suitable for natural language as input, or even proper mathematics, than the languages we have been using thus far.

Naturally we aren't there yet.

reply
FpUser 12 hours ago
>"Naturally we aren't there yet."

But we were. COBOL ;)

On more serious note. Sure we need Spec development IDE which LLM would compile to a language of choice (or print ASIC). It would still not prevent that lower_bound things from happening and there will be no people to find out why

reply
pjmlp 12 hours ago
If you look at the amount of stuff people type on tiny chat windows, I would say AI is COBOL's revenge.

Unfortunely that is already the case when debugging low code, no code tools, and good luck having any kind of versioning with those.

reply
MonkeyClub 12 hours ago
> Alternatively they might build specialized branded hardware which people could only use for what corps allow them to do for nice monthly fee.

That's why I'm still holding on to a bulky Core 2 Duo Management Engine-free Fujitsu workstation, for when personal computing finally goes underground again.

reply
d4rkp4ttern 11 hours ago
For MacOS I haven’t seen any STT app that has faster transcription than Hex (with Parakeet V3), which leverages Apple silicon + FluidAudio:

https://github.com/kitlangton/Hex

This is now my standard way to speak to coding agents.

I used to use Handy but Hex is even faster. Last I checked, Handy has stuttering issues but Hex doesn’t.

reply
mpalmer 11 hours ago
Not sure what the stuttering issues are...

For my part, I don't need an app that's faster than Handy, and I do like that Handy is Tauri (Rust + web), which means it could be fully cross-platform eventually. It's mostly that the stack is just more hackable for me personally.

reply
nullandvoid 16 hours ago
I've been using handy with parakeet on both Windows and mac, and have been very impressed.

Hoe does this compare?

reply
qwertox 14 hours ago
I was also impressed with Handy.

I played around with it this week, and when you enable advanced mode and add a post-transcription AI model to point to your own server which mimics a minimal ChatGPT-compatible behavior, then you can use it to modify the output, even return an empty string if you noticed that the transcript was more targeted to do other stuff ("turn the lights on"), if you then return an empty string, it won't inject keypresses.

So one gets the best for both worlds: transcription for dictation and transcription to trigger events.

If I now only could let it listen constantly and react to voice, so that no push to talk is active, that would be nice.

Maybe this project here could be used for that.

Also, this seems to support streaming transcription.

reply
potatoman22 8 hours ago
How did you install parakeet? It was a nightmare to install on windows
reply
jack_pp 14 hours ago
Handy only supports microphone input not files afaik
reply
rowanG077 14 hours ago
Is there anything truly low latency(sub 100ms)? Speech recognition is so cool but I want it to be low latency.
reply
ahaferburg 9 hours ago
Agree about the latency requirement.

There's https://kyutai.org/stt, which is very low latency. But it seems not as hackable.

reply
noahkay13 7 hours ago
On macbook pro - parakeet.cpp is very low latency, under 100ms (76ms) for 60s audio.
reply
moffkalast 12 hours ago
Parakeet does streaming I think, so if you throw enough compute at it, it should be. The closest competitor is whisper v3 which is relatively slow, maybe Voxtral but it's still very new.
reply
regularfry 11 hours ago
There's a minimum possible latency just given the structure of language and how humans process phonemes. Spoken language isn't quite unambiguously causal so there's a limit to how far you can go for a given accuracy. I don't know where the efficiency curve is though. It wouldn't surprise me if 100ms was pushing it.
reply
moffkalast 11 hours ago
Yeah the metric would be the total processing latency after that. I've found that VAD is honestly harder to get right than STT and if that fails, STT only gets garbage to process. Even humans sometimes have issues figuring out when exactly someone is done talking.
reply
MarcLore 13 hours ago
[dead]
reply