<!-- Generated by scripts/sync-agent-content.mjs. Edit the shared public sources, then regenerate. -->
# MattyFlow

Local dictation and optional rewriting into the current app.

- Dates: 2026
- Status: macOS prototype
- Areas: Software engineering; Native apps; AI / ML
- Stack: Swift · AppKit · Python · FastAPI · MLX
- Topics: Swift; Python; macOS; MLX; Speech; FastAPI; Local-First Tools
- Public case study: https://mgiorgetti.com/project_details/project-mattyflow.html

## Problem

Dictation should return to the application where recording began, while keeping local model loading and optional rewriting separate from native input handling.

## Contribution

macOS dictation prototype joining a Swift/AppKit application with a Python/FastAPI model service and MLX-based local inference.

## Technical approach and public case study

Hold Fn to dictate into your current app, with local transcription and optional rewriting.

- Swift / AppKit · Python / FastAPI · MLX

- macOS prototype

Recording and insertion stay in the native app; Python runs the models.

### Recording and insertion

**Capture & return**

The app remembers which application was focused when recording began. Only the newest completed request is pasted there.

**Model service**

FastAPI prepares the recording for the selected speech model and, when enabled, sends its transcript through a rewrite prompt.

**Model lifecycle**

Models download separately and can unload when idle. Loading them again adds time to the next request.

### Models and permissions

Models run on the Mac by default. OpenAI is also available as an optional provider.

Requires Apple silicon and Microphone, Input Monitoring, and Accessibility permissions.

## Results and limitations

The prototype requires Apple silicon and Microphone, Input Monitoring and Accessibility permissions. Models download separately; reloading an idle model adds latency. OpenAI is an optional provider, so provider choice affects whether processing remains local.

## Public supporting links

- [Portfolio case study](https://mgiorgetti.com/project_details/project-mattyflow.html)
- [Matteo Giorgetti profile](https://mgiorgetti.com/profile.md)
