Repository navigation
feat: multilingual captions, live translation, terminal UX, and stt-rt-v6 - #10
Merged
Merged
Conversation
Move to stt-rt-v6 (v5 is removed on 2026-12-15) and send the API key in the Authorization header; the start-request api_key field is deprecated. Captions - Split lines on a period only when the next token starts a new word, since Soniox puts spacing on the leading edge of tokens - Never leave a speaker tag alone on a row; wrap Japanese, Chinese, and Thai on word boundaries; end sentences on Hindi, Arabic, and Urdu marks; start a new line after a pause of more than two seconds - Enable language identification: tag lines with their language when more than one is in play, split on language changes, and filter with `l` Languages - Script-aware recognition context for every non-Latin language, not only Korean - Searchable language picker; defaults follow the system locale plus English - `--lang`, `--version`, and `earpop languages` Translation - One-way or two-way translation from settings or `--translate` - Translated lines appear under the speech they translate and are saved in the transcript Transcripts and terms - `--format txt|srt|vtt|md`, `--out`, and `latest` for view and export - `transcripts list` reads only file edges and shows the recorded length - `earpop terms` manages words and names sent as Soniox context terms Reliability - Do not reconnect on 400, 401, 402, or 403 - Report failed settings saves instead of crashing Add `pnpm test` (node:test) and a CI workflow for pushes and pull requests.
- Captions fill the terminal; settings, microphone, and key help open below the running captions instead of replacing them - Key hint line keeps the most important keys on narrow terminals; `?` lists every key - Shortcuts accept Korean jamo typed in Hangul mode - `c` copies the transcript path; pausing no longer overwrites the clipboard - Status line shows languages and translation, stays on one row, and truncates the device name first - ESC works on the region, key, and first microphone screens; a saved microphone that is gone no longer hides the list - Short terminals drop menu spacing and limit list heights - Speaker colors avoid white and dark blue - Capture helper hides ALSA plugin devices, marks "System default" by device ID, and still opens microphones saved under the old name
Reliability - Reopen a microphone that stops sending audio for 3 seconds (Bluetooth headsets and hearing aids do this when they switch to their microphone profile) and start a fresh session so timestamps stay aligned; after three tries in a minute, stop and ask for another microphone - Close the Soniox session while no microphone is available; Soniox may bill open streaming sessions even without audio - The capture helper exits when its parent dies, so a killed earpop never leaves the microphone open - Ask for the spoken languages on first run instead of assuming the system locale - Show transcript write failures on screen and in the exit message Build and dependencies - Run the published bundle with React and Ink in production mode - Update ws, oxlint, oxfmt, @types/node, and Rust crates; keep string-width on 8 until Ink moves to 9 so wrapping and rendering agree - Enable the rules-of-hooks lint rule
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Three commits; squash or keep as you prefer.
Multilingual captions and translation (8b1e27b)
stt-rt-v6(v5 is removed on 2026-12-15) and send the API key in theAuthorizationheader (the start-requestapi_keyfield is deprecated)lto filter by language, line and paragraph splits on language change--translate; translated lines appear under the speech and are saved in transcripts--lang,--version,earpop languages--format txt|srt|vtt|md,--out,latest;transcripts listreads only file edges and shows the recorded lengthearpop termsfor Soniox context termsTerminal UX (5775ba7)
?help, shortcuts accept Korean jamo,ccopies the transcript path (pause no longer touches the clipboard)Reliability and dependencies (934d35d)
rules-of-hookslint ruleBehavior changes worth noting in the release
transcripts listthird column is now the recorded length, not the token countc)Test plan
pnpm check,pnpm lint,pnpm fmt:check,pnpm test(54 tests),pnpm buildcargo fmt --check;cargo clippy -D warningsfor linux-x64, win32-x64, darwin-arm64cargo checkfor darwin-x64 (linux-arm64 needs the arm runner for ALSA)pnpm capture:checkdry run,npm pack --dry-run