-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
feat(whisperx): add whisperx backend for transcription with speaker diarization #8299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
eureka928
wants to merge
6
commits into
mudler:master
Choose a base branch
from
eureka928:feat/whisperx-backend
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+504
−12
Conversation
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
✅ Deploy Preview for localai ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
4dcf358 to
7bf3852
Compare
Author
mudler
reviewed
Jan 30, 2026
mudler
reviewed
Jan 30, 2026
mudler
reviewed
Jan 30, 2026
Author
|
Hi @mudler I have updated the code based on your feedback. |
Add speaker field to the gRPC TranscriptSegment message and map it through the Go schema, enabling backends to return speaker labels. Signed-off-by: eureka928 <[email protected]>
Add Python gRPC backend using WhisperX for speech-to-text with word-level timestamps, forced alignment, and speaker diarization via pyannote-audio when HF_TOKEN is provided. Signed-off-by: eureka928 <[email protected]>
Signed-off-by: eureka928 <[email protected]>
Signed-off-by: eureka928 <[email protected]>
Signed-off-by: eureka928 <[email protected]>
…ments Address review feedback: - Use --extra-index-url for CPU torch wheels to reduce size - Remove torch version pins, let uv resolve compatible versions Signed-off-by: eureka928 <[email protected]>
3e5133d to
0d10ffb
Compare
Author
|
Hi @mudler hope you're having good weekend |
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.
Description
This PR adds a new WhisperX Python backend that provides transcription with speaker diarization (identifying who is speaking), word-level timestamps, and forced alignment via pyannote-audio.
Closes #3375
Key changes:
TranscriptSegmentmessage with aspeakerfield (backward-compatible — existing backends leave it empty)Speakerfield through the Go schema (core/schema/transcription.go) and backend mapper (core/backend/transcript.go)backend/python/whisperx/backend with gRPC server, requirements for CPU/CUDA 12/CUDA 13/ROCm, and unit testsbackend/index.yaml, and CI workflowSpeaker diarization requires a HuggingFace token (
HF_TOKENenv var) with access to pyannote models, and is activated by settingdiarize=truein the transcription request.Notes for Reviewers
Signed commits