HackerTrans
TopNewTrendsCommentsPastAskShowJobs

glossardi

no profile record

Submissions

Show HN: Dictator – Hammerspoon-Based macOS Dictation (Whisper API, FLAC, SoX)

github.com
2 points·by glossardi·há 6 meses·3 comments

Show HN: I built GEOfast to make your websites readable by AI

geofast.me
2 points·by glossardi·há 9 meses·1 comments

Show HN: I made a free documentation downloader

devdocsdown.xyz
3 points·by glossardi·ano passado·0 comments

Show HN: I built DevDocsDown – Instantly Download Dev Docs

devdocsdown.xyz
1 points·by glossardi·ano passado·0 comments

comments

glossardi
·há 6 meses·discuss
Mac has it as well, but it's very slow and has poor accuracy.
glossardi
·há 6 meses·discuss
Hey HN,

I built Dictator because I wanted a lightweight, highly controllable voice-to-text tool for macOS that uses my own OpenAI API key instead of a monthly subscription service.

It’s a Lua-based extension for Hammerspoon.

How it works:

Hold Fn (or a custom hotkey) to record.

Release to transcribe.

The text is auto-pasted into your active application (or copied to clipboard).

Technical details & optimizations:

Audio Pipeline: Uses SoX to record directly to FLAC (16kHz mono). This reduces upload size by ~50% compared to WAV, which significantly speeds up the Whisper API response time.

Reliability: Implements a token bucket rate limiter to prevent API abuse and exponential backoff for handling 429/5xx errors gracefully.

Debouncing: I added strict debouncing logic to ignore accidental short taps (<0.4s) and prevent double-triggers.

Security: Your API key is stored locally and sent directly to OpenAI; there is no intermediate server.

Repo: https://github.com/Glossardi/Dictator-Speech-to-Text

I’d love to hear your thoughts on the push-to-talk UX versus a toggle approach, and if anyone has ideas on further reducing latency!
glossardi
·há 9 meses·discuss
AMA in the comments about this tool or GEO in general!
glossardi
·ano passado·discuss
I need this for my next app! Great job, thank you for sharing!