Repository navigation
Using parakeet.cpp with Collie voice input (via a tiny ffmpeg proxy) #198
S1M0N38
started this conversation in
Show and tell
Replies: 1 comment 1 reply
|
Really cool! Had parakeet on my list for a super long time, but I never got around to trying it out. This might finally be it. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Tested with: Collie
v1.6.0, parakeet.cppv0.5.0, macOS arm64. Linux works the same with the Linux CPU tarball.The problem
parakeet-serverspeaks the OpenAI transcription API, but it accepts WAV uploads only — anything else gets a400. Collie's phone client never records WAV: it sends Opus-in-WebM (Chrome/Android/Firefox) or AAC-in-MP4 (Safari/iOS) as-is. So a direct setup fails:See Collie docs → Voice input and its “Container support is provider-specific” section —
collie stt testexists precisely to catch this.The fix
Put a minimal converter in front: non-WAV uploads are transcoded to 16 kHz mono WAV with
ffmpeg, then forwarded toparakeet-server. Everything else (model,language,response_format) passes through untouched. All loopback, zero-egress preserved.(Collie's own bridge is on
8787by default, so8789sits next to it. Any free ports work — just keep them in sync.)1. Prereqs
parakeet-server(releases, e.g.parakeet-v0.5.0-bin-macos-metal-arm64.tar.gz— contains bothparakeet-serverandparakeet-cli)bun(runs the proxy)ffmpeg(any recent build; check withffmpeg -version)2. Run the backend
3. The proxy (
parakeet-stt-proxy.ts)Run it:
4. Point Collie at the proxy
Expected — 3/3 (empty transcript from silence is a pass):
Reload Collie on the phone: tap the mic button (it replaces Send while the box is empty), speak, tap Stop, review the transcript, Send. The hands-free switch in Settings auto-sends.
Notes
parakeet-serveritself, the proxy handles one request at a time — fine for one phone dictating.launchd(macOS) /systemd(Linux) or Docker instead ofnohup.All reactions