How otissy/parakeet-flow works
Parakeet Flow is a local-first Windows dictation app: a user holds a hotkey, speaks, watches live recognition, then releases to produce cleaned and punctuated text in the focused app—or saves it as a note when note mode or safe routing applies. The main process coordinates capture, recognition, session processing, and insertion. Major branches include local AI cleanup/translation, per-app tone and slang dictionaries, settings/UI, and note export/sync and MCP access. Some wiring is documented only in the README or SOURCE INDEX; dashed links mark optional integrations.
Main entry points: main.js Electron main · session.js Dictation session · controller.js Dictation controller · service.js Note service
Components 27
App and controls
- Electron main
src/main/main.js - Dictation controller
src/main/controller.js - Windows and pill UI
src/renderer/app.js - Settings and history
src/main/settings.js
Speech pipeline
- Microphone capture
src/main/mic.js - ASR host
src/asr/asr-host.js - ASR worker
src/asr/asr-worker.js - Speech segmenter
src/asr/segmenter.js - Sherpa Parakeet engine
src/asr/engine-sherpa.js - Speech model store
src/asr/model-store.js
Text processing
- Dictation session
src/core/session.js - Live text processing
src/core/live-typer.js - Text cleanup and tone
src/core/postprocess.js - Type or note routing
src/core/routing.js - Slang dictionary
src/slang/service.js - Slang matcher
src/slang/matcher.js
Notes and sharing
- Note service
src/notes/service.js - Notes outbox
src/notes/outbox.js - Markdown export
src/notes/export-md.js - Notion sync
src/notes/notion.js - MCP notes server
mcp/server.js - Notion service connector
src/notes/service.js
Local integrations
- Local AI cleanup
src/llm/cleanup.js - Local AI worker
src/llm/llm-host.js - Windows text insertion
src/typer/win32-typer.js
Other components
- Speaker
- Focused app
Connections 33
- Speaker → Microphone capture: speaks into
README.md - Speaker → Dictation controller: presses hotkey
README.md - Electron main → Dictation controller: constructs
src/main/main.js - Electron main → Microphone capture: wires
src/main/main.js - Electron main → ASR host: starts
src/main/main.js - Electron main → Speech model store: loads model
src/main/main.js - Electron main → Local AI worker: creates worker
src/main/main.js - Electron main → Settings and history: reads and updates
src/main/main.js - Electron main → Windows and pill UI: serves windows
- Dictation controller → Dictation session: creates session
src/main/controller.js - Dictation controller → Type or note routing: routes dictation
src/main/controller.js - Dictation controller → Slang dictionary: gets matcher
src/main/controller.js - Dictation controller → Note service: saves note
- ASR host → ASR worker: dispatches audio
- ASR worker → Speech segmenter: uses
src/asr/asr-worker.js - ASR worker → Sherpa Parakeet engine: decodes with
src/asr/asr-worker.js - Dictation session → Live text processing: updates transcript
src/core/session.js - Dictation session → Local AI cleanup: requests cleanup
src/core/session.js - Dictation session → Text cleanup and tone: cleans text
src/core/session.js - Live text processing → Windows text insertion: inserts text
src/core/live-typer.js - Live text processing → Text cleanup and tone: prepares text
src/core/live-typer.js - Dictation session → Slang dictionary: applies terms
src/core/session.js - Slang dictionary → Slang matcher: compiles packs
src/slang/service.js - Windows text insertion → Focused app: types into
README.md - Local AI cleanup → Local AI worker: uses local runtime
- Dictation session → Note service: emits note
- Note service → Notes outbox: writes notes
src/notes/service.js - Note service → Markdown export: exports notes
src/notes/service.js - Note service → Notion sync: submits optional sync
src/notes/service.js - Electron main → Note service: configures notes
src/main/main.js - Notion service connector → Notes outbox: shares note storage
- MCP notes server → Notes outbox: reads and updates
mcp/server.js - Windows and pill UI → Electron main: uses app controls