Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Commits on master
Document RECORDING_SESSION_MAX_BYTES_PER_USER as a soft (best-effort) limit since SQLite has no row-level locks and cross-process enforcement needs Redis/Postgres advisory locks; the overrun is small and bounded by worker count
84b4aee Murtaza Nasir committed 5 months ago
On webhook dispatcher startup, scan for status='pending' deliveries with attempt_count>0 older than 5 min and reset next_retry_at so a worker that died mid-pass doesn't leave deliveries orphaned
033693f Murtaza Nasir committed 5 months ago
Replace bare excepts in calendar-event datetime parsing with explicit ValueError/TypeError/ParserError catches that log the malformed string so systematic LLM output issues surface instead of being silently swallowed
55c1278 Murtaza Nasir committed 5 months ago
Add composite (status, next_retry_at) index on webhook_delivery to back the dispatcher's main 'due deliveries' query and avoid full-table scans once a few thousand deliveries accumulate; declared on the model and applied via init_db migration
3f3dccc Murtaza Nasir committed 5 months ago
Re-probe the stitched output with ffprobe after the concat step so a truncated file (disk full, OOM-killed ffmpeg) raises StitchError cleanly instead of leaving a broken Recording row that fails confusingly during downstream transcription
2164abb Murtaza Nasir committed 5 months ago
Refresh admin-guide webhooks event vocabulary to document recording.transcription.started, recording.events.extracted and recording.updated which are wired in master, including their actual payload shapes; note that recording.updated is not yet debounced
a9199ca Murtaza Nasir committed 5 months ago
Add opt-in chunk-commit batching via RECORDING_SESSION_COMMIT_BATCH_SIZE (default 1 preserves per-chunk commit) for deployments on slow or network-backed storage; finalize and abort always force-commit so the batched bookkeeping flushes cleanly
7ebbc27 Murtaza Nasir committed 5 months ago
Move recording.transcription.started emit from _process_job (immediately after claim) into _run_transcription and _run_reprocess_transcription after the audio_path existence check so subscribers don't see misleading started followed by immediate failed when the file is missing
12d00bc Murtaza Nasir committed 5 months ago
Add periodic trial-fire path so auto-paused webhooks resume on a successful delivery (WEBHOOK_TRIAL_INTERVAL_SECONDS, default 3600); the dispatcher attempts one trial per paused webhook per interval, with later queued deliveries pushed forward so the receiver isn't flooded while in recovery
399c83f Murtaza Nasir committed 5 months ago
Guard recording-session cleanup scheduler with a module-level _cleanup_thread_started flag so dev reload and container restart-on-change don't spawn duplicate daemon threads (mirrors webhook dispatcher pattern)
5f3f728 Murtaza Nasir committed 5 months ago
Eager-load Recording.folder and Recording.tag_associations->Tag in v1 list to collapse ~75 lazy queries per page into a single SELECT with joined-table loads
e730262 Murtaza Nasir committed 5 months ago
Replace per-user lazy-load with two grouped queries in admin user list (counts + storage_used) so the page doesn't re-query the recording table once per user; 100 users now run two queries instead of ~200
4db18db Murtaza Nasir committed 5 months ago
Make SESSION_COOKIE_SECURE env-configurable (default false to preserve http://localhost compat) and document in admin-guide system-settings.md that HTTPS production deployments should set it true
0d1e27f Murtaza Nasir committed 5 months ago
Expose keep_audio_only in v1 list, v1 detail, model to_dict and to_list_dict, document in OpenAPI schema, and reject PATCH attempts to mutate it (the flag dictates how the upload was already processed and must not be retroactively changed)
85763f3 Murtaza Nasir committed 5 months ago
Validate tag ownership and group membership in PATCH /api/v1/recordings/batch add_tag_ids and remove_tag_ids paths to close IDOR where any authenticated user could attach arbitrary tags including admin-curated or other users' private tags to their own recordings
1cdb1ff Murtaza Nasir committed 5 months ago
Cache audio_duration_seconds on Recording at upload (from codec_info probe) and after transcription so API list and detail endpoints skip ffprobe; get_audio_duration() falls back to live probe only when allow_probe=True
4c5d484 Murtaza Nasir committed 5 months ago
Rename recording.error_msg writes to recording.error_message across processing.py so transcription failure context actually persists (three sites for budget overrun and ffmpeg audio extraction failure)
9f5ea24 Murtaza Nasir committed 5 months ago
Align Keep audio only toggle markup with the Incognito Mode pattern: short off/on subtitle split, no leading-tight / mt-0.5 / flex-shrink-0 overrides
f12a3cb Murtaza Nasir committed 5 months ago
Add per-upload Keep audio only override and larger size limit for audio-only video uploads, with admin setting max_audio_only_video_size_mb (default 4x max_file_size_mb) and a post-extraction size guard against oversized stored audio
84e0105 Murtaza Nasir committed 5 months ago
Seed the new-recording upload form's folder picker from the sidebar's current folder filter, clearing it when sidebar is on All Recordings or Unfiled
ea9e992 Murtaza Nasir committed 5 months ago
Pin webhook failure-event emission for all four failing job types plus error-text truncation, and document deferred recording.updated debouncing in roadmap
f9f2266 Murtaza Nasir committed 5 months ago
Validate folder ownership in recording-session finalize to close IDOR where an attacker could finalize into another user's personal or group folder (#287 c/d)
20f1048 Murtaza Nasir committed 5 months ago
Remove three no-op csrf_exempt decorator definitions and the unused is_token_authenticated stub (audit cleanup from GHSA-x4q4-3ww4-h329)
f9c4b2b Murtaza Nasir committed 5 months ago
Wire emissions for recording.transcription.started, recording.events.extracted, and recording.updated so every advertised webhook event actually fires (#275)
04d6678 Murtaza Nasir committed 5 months ago
Fix missing db import in webhook lifecycle emit so transcription and summary completion events actually fire (regression in master pre-release)
7fad8f7 Murtaza Nasir committed 5 months ago
Switch webhook payloads to compact JSON to match wire-format conventions of Stripe/GitHub/Mux and avoid debugging-UI canonicalisation mismatches
d779e29 Murtaza Nasir committed 5 months ago
Pin authlib<1.7.0 to work around upstream OpenID client_id placement regression bisected by @dotmobo (#298)
a9829bb Murtaza Nasir committed 5 months ago
Webhooks Phase 3: admin-guide docs and roadmap update (#275)
85ccec8 Murtaza Nasir committed 5 months ago
Webhooks Phase 2: account-settings tab with list/edit/test/deliveries/rotate + 16 i18n keys per locale (#275)
5afaaee Murtaza Nasir committed 5 months ago