Skip to content
nigelgilbertPublic

About

Simple and extensible local dictation for Apple Silicon that you can customize easily with Python

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

36 Commits

Folders and files

Repository files navigation

Kiku Flow

Kiku (聞く): to listen.

Hold a key, talk, let go. Your words land in whatever app you're in.

It works like a Unix pipe: text in, text out, with your own Python hooks in the middle. Powerful yet simple extensibility.

You say It pastes
"Um, so we should meet Thursday. No, Friday." We should meet Friday.

Kiku Flow is yet another dictation app for Apple Silicon Macs. It's fast and it runs entirely on your machine. NVIDIA Parakeet for listening and a small language model for cleanup.

No telemetry and nothing leaves your Mac.

You can script it

Every dictation takes the same short trip, and the stops in brackets are yours:

mic → transcribe → [on_transcribed] → cleanup → [on_cleaned] → paste → [on_sent] → log → [on_done]

A hook is a method of a plugin, a Python class in a file in the hooks folder. It gets the text and returns the text. This one makes every dictation read like a text message, with no capital at the start and no full stop at the end:

from typing import override

from kiku import Plugin


class ChatVoice(Plugin):
    """Paste with no capital at the start and no full stop at the end."""

    @override
    def on_cleaned(self, t: str) -> str:
        t = t.removesuffix(".")
        first, rest = t[:1], t[1:]
        return first.lower() + rest

That is the whole plugin system. A hook is plain Python, so it can call a second model or drive your Mac. The ones in examples/ translate what you say, search the web and run commands by voice.

Quick start

You need an Apple Silicon Mac on macOS 15 or later. Paste this into Terminal:

curl -fsSL https://raw.githubusercontent.com/nigelgilbert/KikuFlow/main/install.sh | sh

It puts Kiku Flow in Applications, installs its own Python, downloads the models, several GB, and opens the app. Run it again to update.

  1. Grant Accessibility when asked. The hotkey and the paste need it.
  2. Hold Right Option. The first time, macOS asks for the Microphone; allow it and hold again.
  3. Say something and let go.

Install this way and not from a zip in your browser: the app isn't notarized by Apple, so macOS blocks a copy that a browser downloaded.

Build from source

You need Swift 6 (Xcode or the Command Line Tools) and uv.

brew install uv
app/bundle.sh
open "app/build/Kiku Flow.app"

The first launch installs its own Python and downloads the models. A build from source reads its hooks from hooks/ in the repo, unless a hooks folder is already there, as after an install.

To update, git pull, quit Kiku Flow and run the last two lines again. macOS takes each build for a new app and asks for Accessibility again, unless you sign your builds.

Make it yours

  • Lifecycle hooks: the pipeline, the hooks and a page of recipes.
  • Customization: the hotkey, the models, your own cleanup prompt, the log, your own HUD, and how the paste behaves.
  • examples/: hooks to copy into the hooks folder and talk to.
  • Releasing: how a release is built and signed.

Under the hood

app/ is a small Swift menu-bar app that watches the key, records and pastes. sidecar/ is the speech engine, a local Python server that transcribes and cleans up through MLX; its README has the HTTP API. Tests are app/test.sh and, in sidecar/, uv run pytest -q.

Licenses and attributions

  • Speech recognition: NVIDIA Parakeet TDT 0.6B v3 by NVIDIA, licensed under CC-BY-4.0, used through the MLX conversion mlx-community/parakeet-tdt-0.6b-v3 and parakeet-mlx.
  • Cleanup models: devadathanmb/utter-dictation-cleanup-qwen3-1.7b-mlx-6bit and ReFyneLabs/simplewords-dictation-cleanup-v3, under the terms on their model pages.
  • Python dependencies (MLX, mlx-lm, mlx-whisper, FastAPI, uvicorn, NumPy) are installed by uv under their own licenses. The app carries a copy of uv, licensed under Apache-2.0 or MIT.

About

Simple and extensible local dictation for Apple Silicon that you can customize easily with Python

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages