How ozcancelik/harfiyen works
Harfiyen is a browser-based, local-processing Turkish transcription and captioned-video editor. The main workflow is to load media or start a microphone, transcribe it into timed words, edit and style the transcript, preview it, then export captioned video. Documented branches include multiple recognition models, punctuation and number formatting, speaker identification, text-to-speech dubbing, and kinetic typography. The graph uses the supplied source index and excerpts for implementation links; README links represent documented capabilities where implementation details were not sampled.
Main entry points: App.tsx App shell · asr.worker.ts ASR worker · renderer.ts Caption renderer · Viewer.tsx Preview controls
Components 26
Editing app
- App shell
src/App.tsx - Media and mic input
src/components/Dropzone.tsx - Transcript editor
src/components/Transcript.tsx - Preview controls
src/components/Viewer.tsx
Speech processing
- Transcription controller
src/lib/useTranscriber.ts - ASR worker
src/worker/asr.worker.ts - Seda recognition engine
src/engine/index.ts - ONNX model sessions
src/engine/models.ts - Whisper recognition
src/whisper/index.ts - Duyu recognition
src/duyu/index.ts - Model definitions
src/models.ts - Punctuation formatter
src/punct/formatter.ts
Project and transcript
- Project persistence
src/lib/projectStore.ts - Timed caption cues
src/lib/cues.ts - Crop and framing
src/lib/crop.ts - Speaker identification
src/lib/speakers.ts
Caption and video
- Caption styles
src/captions/style.ts - Caption fonts
src/captions/fonts.ts - Caption renderer
src/captions/renderer.ts - Audio-reactive visuals
src/render/aura.ts - Kinetic typography
src/render/kinetic.ts - Video export worker
src/worker/render.worker.ts
Translation and voice
- Machine translation
src/mt/translator.ts - Dubbing synthesis
src/worker/tts.worker.ts - Dubbing coordination
src/lib/useDubber.ts
Other components
- User
Connections 32
- User → App shell: edits and exports
- App shell → Media and mic input: opens media
src/App.tsx - App shell → Transcription controller: starts transcription
- Transcription controller → ASR worker: dispatches audio
src/lib/useTranscriber.ts - ASR worker → Seda recognition engine: runs recognition
src/worker/asr.worker.ts - ASR worker → Whisper recognition: runs Whisper
src/worker/asr.worker.ts - ASR worker → Duyu recognition: runs Duyu
src/worker/asr.worker.ts - Seda recognition engine → ONNX model sessions: creates sessions
src/engine/index.ts - Seda recognition engine → Model definitions: uses configuration
src/engine/index.ts - ASR worker → Model definitions: selects model
src/worker/asr.worker.ts - ASR worker → Punctuation formatter: formats transcript
src/worker/asr.worker.ts - App shell → Transcript editor: presents transcript
src/App.tsx - App shell → Project persistence: loads saved project
src/App.tsx - Project persistence → Crop and framing: stores framing
src/lib/projectStore.ts - Project persistence → Speaker identification: stores speaker data
src/lib/projectStore.ts - Transcript editor → Timed caption cues: edits timed words
- Preview controls → Caption renderer: renders preview
src/components/Viewer.tsx - Caption renderer → Timed caption cues: builds cues
src/captions/renderer.ts - Caption renderer → Caption styles: reads presets
src/captions/renderer.ts - Caption renderer → Caption fonts: loads fonts
src/captions/renderer.ts - Preview controls → Crop and framing: uses crop settings
src/components/Viewer.tsx - Preview controls → Audio-reactive visuals: renders audio visuals
src/components/Viewer.tsx - Preview controls → Kinetic typography: renders kinetic style
src/components/Viewer.tsx - App shell → Video export worker: requests video export
- Video export worker → Caption renderer: burns captions
src/worker/render.worker.ts - Video export worker → Kinetic typography: renders kinetic video
src/worker/render.worker.ts - Video export worker → Crop and framing: applies crop
src/worker/render.worker.ts - App shell → Dubbing coordination: starts dubbing
- Dubbing coordination → Machine translation: translates transcript
src/lib/useDubber.ts - Dubbing coordination → Dubbing synthesis: requests speech synthesis
src/lib/useDubber.ts - Dubbing synthesis → Model definitions: loads voice model
src/worker/tts.worker.ts - User → Speaker identification: identifies speakers