hex/tests/fixtures/media
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dax 648ec4725a
labs: transcribe dropped audio files (#1798)
* labs: transcribe dropped audio files

Add Labs › Transcribe dropped audio (off by default) and its backend:
WAV and MP3 on every OS, M4A/AIFF/CAF on macOS through the meeting import
bridge, decoded in 30 s pieces, transcribed in-process with the selected
model, and written as <stem>.txt beside the file with a Downloads fallback,
collision numbering, atomic writes, cancellation, and progress. Move the
shared pieces reader out of the transcribe CLI so both use it.

The window's drop target lands in a later change.

* labs: drop audio files on the window to save a transcript

The window root takes files with the extensions this build reads while
Labs › Transcribe dropped audio is on: a file drag shows "Drop to save a
transcript" over the window, a drag Hex can't read says what it reads, and
a drop queues one job per file behind the one running, all at the dictation
model and language in use. A worker transcribes each file and the toast
shows its name, a progress ring and percentage, how many wait behind it,
and Cancel; a saved file shows its name, the whole path, and Show in folder
(meeting::reveal), and a failure shows the backend's own words. The lab's
card offers Transcribe a file…, which opens the same queue's native file
dialog, for Wayland, where nothing can be dropped.

file_transcript exposes its extension table for the drop filter and dialog,
and finds every format from that one list. New goldens cover the hint and
the transcribing toast, and the drop-transcribe card now leads with a wave.

* meeting: use the renamed bridge in the import test

* transcription: find a temp folder through a symlinked path

* transcription: finish the audio file drop's review fixes

A drop right after Cancel (or the lab turned off and on) started a second
worker and a second transcription service while the first was still loading
or running. The running job now stays tracked as cancelling, its toast says
Cancelling… with no Cancel, and the next queued file starts only when its
worker reports Done or its channel closes. A cancel before the save also
stops a cancelled file from writing a transcript.

Also: validate a WAV whole before a model loads, report an unknown MP3 length
as indeterminate progress, map a bridge decode failure to Unreadable, keep a
writable source folder's transcript beside it without Downloads, name this
build's formats in the Labs card, use the kit's 16 pt toast lead, route Show
in folder through the host, derive the Audio folder through app_paths, and
correct the stale comments and feature map.

* transcription: read dropped files through the shared pieces reader

The rebased tree already decodes every container through Pieces, so the
dropped-file backend now opens, validates and reads one Pieces instance
instead of its own WAV, rodio MP3 and macOS bridge readers. Progress comes
from the reader's position and duration, and a compressed file with no
header duration reports no fraction. The retired Labs › Expire meeting audio
gate and the removed Transcribe files lab leave the tree too.

* labs: refresh the goldens for the dropped audio card

The card's row and the drop hint and toast change the Labs images and the
two drop scenes; only those eight goldens changed.

* labs: finish the dropped audio card's translations and goldens

The string tables already translate Audio files and Transcription stopped,
so the lab reuses them; the card's English line gains translations, the
website catalog lists the lab, and the what's new goldens show it.

* labs: offer every audio format the shared reader decodes

the dropped audio lab offered wav and mp3 everywhere, and the old macOS decoder's extras only on macOS, though every OS reads through the shared pieces reader. it now offers one list: wav, mp3, m4a, mp4, aiff/aif, caf, flac, ogg/oga/opus, webm, and mkv. every copy, translation, and golden names it, and a fixture proves the reader takes each one. also names the codec or missing track on a failure, keeps a late cancel's saved toast, and waits for a cancelled worker before the next file.

* labs: offer raw AAC and MOV files too

* labs: offer the reader's other common extensions

the shared pieces reader detects formats by content, so m4b, m4v, 3gp,
aifc, mka, weba, and wave decode too. the extension list is now described
as the common names it offers rather than an exhaustive set, empty files
and unreadable wavs say why, and a lab-off poll drains the worker's
channel instead of reading one event.

* transcription: free the audio slot before a result is sent

A long file is transcribed one piece after another, and each piece admits
the slot as soon as the previous result arrives. The worker released the
slot only after sending that result, so the next admit could see it busy
and fail mid-file with "Another transcription is running".

Also fixes the codec refusal's grammar and two stale comments.

* transcription: say where a damaged file stopped

a compressed file that stops decoding partway now says where it stopped
("talk.m4a is damaged at 12:34") instead of only that it is corrupt; a wav
refused up front keeps the old words. the slot-order test uses a rendezvous
response channel and waits for the slot to read free before receiving, so
sending before the admission drops fails every time instead of occasionally.
a locked drop-transcribe card keeps the lock's words instead of replacing
them with its formats line.
2026-11-18 20:49:59 -05:00
..
rgbw.mp4 feat(cli): hex transcribe reads any common media file, with or without the app (#1799) 2026-11-13 13:14:15 -08:00
sine-aac.aac labs: transcribe dropped audio files (#1798) 2026-11-18 20:49:59 -05:00
sine-aac.caf feat(cli): hex transcribe reads any common media file, with or without the app (#1799) 2026-11-13 13:14:15 -08:00
sine-aac.m4a feat(cli): hex transcribe reads any common media file, with or without the app (#1799) 2026-11-13 13:14:15 -08:00
sine-alac.caf feat(cli): hex transcribe reads any common media file, with or without the app (#1799) 2026-11-13 13:14:15 -08:00
sine-opus.ogg feat(cli): hex transcribe reads any common media file, with or without the app (#1799) 2026-11-13 13:14:15 -08:00
sine-opus.webm feat(cli): hex transcribe reads any common media file, with or without the app (#1799) 2026-11-13 13:14:15 -08:00
sine-video.mp4 feat(cli): hex transcribe reads any common media file, with or without the app (#1799) 2026-11-13 13:14:15 -08:00
sine-vorbis.ogg feat(cli): hex transcribe reads any common media file, with or without the app (#1799) 2026-11-13 13:14:15 -08:00
sine.aiff feat(cli): hex transcribe reads any common media file, with or without the app (#1799) 2026-11-13 13:14:15 -08:00
sine.flac feat(cli): hex transcribe reads any common media file, with or without the app (#1799) 2026-11-13 13:14:15 -08:00
sine.mp3 feat(cli): hex transcribe reads any common media file, with or without the app (#1799) 2026-11-13 13:14:15 -08:00