Skip to content

Releases

v1.2.0

Choose a tag to compare

@Alithiel31 Alithiel31 released this 01 Sep 21:07
d468834

Added

  • French/English UI language support: a lang field (fr/en, default fr) on /process and
    /api/transcribe drives the LLM structuring prompt's output language and the localized HTTP
    error messages (app/i18n.py); Whisper transcription now always auto-detects the spoken
    language (language=None), decoupled from the requested output language. The frontend gets a
    language switcher (header, persisted in localStorage, defaults to the browser's language on
    first visit) translating the whole UI, including the CGU/privacy policy/legal notice pages
  • Local notifications: an opt-in "notify me when done" checkbox on the home page triggers a
    device notification via ServiceWorkerRegistration.showNotification() once a transcription
    finishes — useful if the tab is backgrounded or the screen is locked while waiting. No server
    push/VAPID/subscription storage involved, purely client-side
  • Rate limiting on /process and /api/transcribe (slowapi, default 5/minute per IP,
    configurable via RATE_LIMIT_PROCESS) to protect Groq API credits and the Raspberry Pi from
    anonymous abuse
  • Explicit server-side upload size limit (MAX_UPLOAD_SIZE_MB, default 100), enforced by
    streaming the upload to disk in chunks and aborting past the limit — previously only nginx's
    client_max_body_size (500 MB) bounded upload size. The 100 MB default matches Cloudflare's own
    request size ceiling on Free/Pro plans for traffic proxied through it (Tunnel included): a
    larger file is silently dropped by Cloudflare before ever reaching the Pi, so a more permissive
    backend/nginx limit only delays the failure instead of preventing it — see
    docs/Troubleshooting.md
  • .github/dependabot.yml: weekly dependency update PRs for pip, npm (root and frontend/)
    and GitHub Actions
  • docs/SECURITY.md / docs/SECURITY.fr.md: vulnerability disclosure policy
  • Docker image now runs as a non-root appuser instead of root

Changed

  • CORS_ORIGINS now defaults to https://parseandcut.alithiel31.dev instead of * — the
    wildcard let any third-party site's JavaScript call the public API directly through visitors'
    browsers; local dev still overrides it to the Vite origin
  • LANGUAGE env var now means the default output language used when a request omits lang
    (e.g. an old cached PWA client), not the language forced onto Whisper's transcription
  • /health's language field renamed to default_language to match LANGUAGE's new meaning

v1.1.0

Choose a tag to compare

@Alithiel31 Alithiel31 released this 17 Aug 19:29
e73dfeb

Added

  • A mode option (summary or transcript) on /process and /api/transcribe, exposed in the UI as a choice between the AI-structured study sheet (unchanged default) and the raw Whisper transcript. Selecting transcript skips the LLM structuring call entirely
  • Per-segment timestamps ([mm:ss], or [h:mm:ss] past one hour) on the raw transcript (mode=transcript), using Groq Whisper's verbose_json response format
  • Legal pages served by the PWA at /cgu, /politique-de-confidentialite and /mentions-legales, plus a footer linking to them. The privacy policy documents the only third party the audio reaches (Groq, in the United States), the fact that uploads are deleted at the end of each request, and the absence of accounts, cookies and analytics — it also provides the public URL the Play Store listing requires
  • react-router-dom and a pages/ directory: App.tsx becomes the shared layout (header, footer, service-worker update banner, scroll reset) and the transcription view moves to pages/Home.tsx
  • LICENSE file (MIT, already declared in package.json but not versioned until now)

Fixed

  • Long URLs no longer widen the page on narrow screens (overflow-wrap on links and inline code inside .markdown-body)
  • /process and /api/transcribe returning 500 on any platform without a /tmp directory (Windows) — temp file paths were hardcoded instead of using tempfile.gettempdir()
  • The AI structuring call (mode=summary) failing with a 502 since Groq deprecated llama-3.3-70b-versatile — replaced by openai/gpt-oss-120b
  • mode=transcript returning 500 on real (non-mocked) transcriptions — the Groq SDK returns Whisper's verbose_json segments as raw dicts, not attribute-accessible objects
  • Uploads over 1 MB rejected with a 413, and long transcriptions with a 504, due to Nginx's default client_max_body_size and proxy_read_timeout — both raised in nginx.conf
  • Nginx's proxy_read_timeout/proxy_send_timeout raised from 300s to 600s: the Groq client timeout (240s per call) combined with transcrire_chunk's up-to-2 retries on timeout could reach ~480s for a single chunk, leaving too little headroom under the previous 300s budget

Security

  • The generated notes are now sanitized with DOMPurify before being injected into the page. marked dropped its sanitize option in v5, so raw HTML in the Markdown reached the DOM untouched — and that Markdown comes from the LLM, hence indirectly from the uploaded audio. A payload such as <img src=x onerror=…> executed in the page; it no longer does, and the legitimate Markdown rendering is unchanged

v0.5.0

Choose a tag to compare

@Alithiel31 Alithiel31 released this 05 Aug 17:49

Documentation release: no change to the application itself.

Added

  • Bilingual README.md (EN) / README.fr.md (FR)
  • CONTRIBUTING.md / CONTRIBUTING.fr.md
  • CHANGELOG.md
  • Troubleshooting.md / Troubleshooting.en.md
  • GitHub issue templates (.github/ISSUE_TEMPLATE/)