> For the complete documentation index, see [llms.txt](https://docs.yemreak.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yemreak.com/contents/105b4e87.md).

# Hammerspoon Dictation

[r/ClaudeAI](https://reddit.com/r/ClaudeAI/comments/1o6158u/built_a_voicetotext_system_for_macos_with_claude/) • [r/macOS](https://reddit.com/r/MacOS/comments/1o613zy/voicetotext_on_macos_using_local_gpu_0315s/) • [r/LocalLLaMA](https://reddit.com/r/LocalLLaMA/comments/1o61494/local_voicetotext_on_apple_silicon_with_smart/)

macOS için yerel GPU kullanarak ses-metin dönüşümü yapan sistem. Claude Code ile yazdım.

Alt+A → konuş → Alt+A → metin yapışır. 0.3-1.5 saniye.

## Akış

```
Alt+A tuşuna bas (TR) / Alt+Shift+A (EN)
  ↓
Hammerspoon hotkey yakala
  ↓
audiorecord.swift kayda başla → Görsel gösterge (◉ REC)
  ↓
Alt+A tekrar bas
  ↓
audiorecord.swift kaydet ~/Recordings/*.wav
  ↓
voice-transcribe.ts orkestrasyon
  ↓
  ┌─────────────────────────────────────────┐
  │ Sağlayıcı Kademesi (hata → sonraki)     │
  ├─────────────────────────────────────────┤
  │ 1. Parakeet :8768                       │
  │    ├─ Sadece İngilizce                  │
  │    ├─ ~0.3s                             │
  │    ├─ Ücretsiz, GPU                     │
  │    └─ HTTP istek                        │
  │         ↓ (hata veya TR)                │
  │ 2. Whisper MLX :8770                    │
  │    ├─ Türkçe/İngilizce                  │
  │    ├─ ~1.5s                             │
  │    ├─ Ücretsiz, GPU                     │
  │    └─ WebSocket stream                  │
  │         ↓ (hata veya kapalı)            │
  │ 3. ElevenLabs API (opsiyonel)           │
  │    ├─ Bulut                             │
  │    ├─ ~2-3s                             │
  │    └─ API key gerekli                   │
  │         ↓ (hata veya kapalı)            │
  │ 4. OpenAI Whisper API (opsiyonel)       │
  │    ├─ Bulut                             │
  │    ├─ ~2-3s                             │
  │    └─ API key gerekli                   │
  └─────────────────────────────────────────┘
  ↓
Transkript metni döndü
  ↓
Akıllı pano: eski kaydet → yeni yapıştır → eski geri yükle
  ↓
Metin aktif uygulamada görünür + boşluk ekle
```

## Mimari

```
hammerspoon/
├─ init.lua                   → Giriş noktası, config yükle
├─ modules/dictation.lua      → Kayıt orkestrasyon, hotkey
└─ scripts/
   ├─ voice-transcribe.ts     → STT sağlayıcı kademesi
   └─ lib/
      ├─ parakeet.ts          → HTTP istemci
      └─ whisper-stream.ts    → WebSocket istemci

services/
├─ parakeet.py               → :8768 HTTP sunucu (Parakeet MLX)
├─ whisper-mlx-stream.py     → :8770 WebSocket sunucu (Whisper MLX)
└─ ecosystem.config.cjs      → PM2 servis yönetici

audiorecord-swift/
└─ audiorecord.swift         → Yerel ses kaydı (AVFoundation)
```

## Kurulum

```bash
git clone https://github.com/yemreak/hammerspoon-dictation.git
cd hammerspoon-dictation
./scripts/install.sh
```

Otomatik yükleyici her şeyi kuruyor. 5 dakika.

[hammerspoon-dictation](https://github.com/yemreak/hammerspoon-dictation)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.yemreak.com/contents/105b4e87.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
