Repository navigation
Studio Translate: translate audio files - #18976
Merged
Merged
Conversation
Audio files dropped on or opened from the Translate page are transcribed with the speech-to-text model picked in Voice settings, the same request chat's audio upload makes, and the transcript fills the text box to translate as usual. Documents, images and text files keep their reader.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Member
Author
|
@codex review |
1 similar comment
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
danielhanchen
pushed a commit
to danielhanchen/unsloth-staging-2
that referenced
this pull request
Nov 23, 2026
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.
Related to #18666
Summary
The Translate page now takes audio files. Drop an audio file on the page, or pick one with the open file button, and it is transcribed with the speech-to-text model chosen in Settings > Voice. The transcript goes into the source box and is translated as usual: auto translate, history, the language picker and the prompt all work the same way as for typed text.
transcribeAudioBlobwith the Voice settings model and quant). Size limit (25 MB), empty file, no speech and "choose a model" errors reuse the existing dictation messages and their translations. A model that is not downloaded yet opens the existing STT download prompt..wav, .mp3, .m4a, .ogg, .opus, .flac, .aac, ...plusaudio/*MIME types). Video files are not routed here.Nothing changes for text, documents or images: an audio file is the only thing that takes the new branch, and a test checks that no currently accepted text, document or image extension is classified as audio. No backend change, no new dependency.
Images (part 1 of the issue)
Images already work today: an image dropped on Translate goes to
/api/rag/extract-text, which reads it with the vision model loaded in Chat, or Tesseract when installed, and the text is translated. This PR leaves that path untouched.Scoped out, and why
.srt/.vttfiles can already be opened on Translate as text.Test evidence
node --experimental-strip-types --test tests/translate-*.test.ts: 65 pass, 0 fail (includes the newtests/translate-audio-file.test.ts).npm test(full frontend suite): 16972 tests, 16971 pass, 1 skipped, 0 fail.npm run typecheck: no type errors.eslinton the touched files: no new findings vs the base (translate-page.tsxkeeps its 12 existing findings; the new file and test have none).Before / after
The Translate source box now says it takes audio files, and the file picker accepts audio (documents and images still work as before):