How ondex-gregor/hear-ai works
Hear AI is a Windows voice-dictation app: the user triggers recording with a global hotkey, speaks, and receives locally transcribed text in the active application. Its documented workflow includes chunked transcription, optional vocabulary correction and prompt generation, local history, and clipboard-based delivery. The graph also shows the bubble, settings, and model management. Several links are based on README behavior because the excerpts do not show all runtime wiring; optional providers are kept distinct.
Main entry points: controller.py Dictation controller · settings_window.py Settings window · qt_app.py Qt app and tray · gerador.py Prompt generator
Components 22
Capture and control
- Global hotkey
src/hear_ai/hotkey.py - Dictation controller
src/hear_ai/controller.py - Microphone recorder
src/hear_ai/audio.py
Speech and text
- Chunked transcription
src/hear_ai/streaming.py - Local Whisper
src/hear_ai/transcriber.py - Text postprocessing
src/hear_ai/postprocess.py - Vocabulary correction
src/hear_ai/vocab.py - Operation modes
src/hear_ai/modos.py - Prompt generator
src/hear_ai/gerador.py
Delivery and history
- Clipboard and paste
src/hear_ai/paster.py - Local history
src/hear_ai/history.py
App experience
- Recents window
src/hear_ai/ui/recent_window.py - Floating bubble
src/hear_ai/ui/bubble.py - Bubble state and waveform
src/hear_ai/ui/bubble_model.py - Qt app and tray
src/hear_ai/ui/qt_app.py - Settings window
src/hear_ai/ui/settings_window.py - Settings validation
src/hear_ai/settings_model.py - Configuration
src/hear_ai/config.py - Model downloads
src/hear_ai/model_download.py
Other components
- User
- Ollama
- Cloud endpoint
Connections 23
- User → Global hotkey: starts dictation
README.md - Global hotkey → Dictation controller: triggers recording
README.md - Dictation controller → Microphone recorder: records speech
README.md - Microphone recorder → Chunked transcription: streams audio
README.md - Chunked transcription → Local Whisper: transcribes chunks
README.md - Dictation controller → Operation modes: selects mode
src/hear_ai/modos.py - Operation modes → Prompt generator: rewrites transcript
src/hear_ai/modos.py - Prompt generator → Ollama: requests completion
src/hear_ai/gerador.py - Prompt generator → Cloud endpoint: requests completion
src/hear_ai/gerador.py - Dictation controller → Text postprocessing: processes transcript
src/hear_ai/controller.py - Dictation controller → Vocabulary correction: corrects terms
src/hear_ai/controller.py - Dictation controller → Local history: saves transcript
README.md - Dictation controller → Clipboard and paste: delivers text
README.md - User → Floating bubble: controls recording
README.md - Floating bubble → Bubble state and waveform: updates display state
src/hear_ai/ui/bubble.py - Qt app and tray → Floating bubble: shows bubble
src/hear_ai/ui/qt_app.py - Qt app and tray → Recents window: opens recents
src/hear_ai/ui/qt_app.py - Recents window → Local history: searches history
README.md - Qt app and tray → Settings window: opens settings
src/hear_ai/ui/qt_app.py - Settings window → Settings validation: validates changes
src/hear_ai/ui/settings_window.py - Settings window → Configuration: saves configuration
src/hear_ai/ui/settings_window.py - Settings window → Model downloads: downloads model
src/hear_ai/ui/settings_window.py - User → Recents window: reviews corrections
README.md