WhisperX-NeMo Pipeline
A production-ready transcription and diarization pipeline with parallel processing.
Features
- Parallel Processing: Runs Whisper transcription and NeMo diarization simultaneously
- Multiple Backends: Supports both faster-whisper and WhisperX
- Speaker Diarization: Uses NeMo MSDD models for accurate speaker identification
- Audio Source Separation: Optional vocal extraction using Demucs
- Punctuation Restoration: Automatic punctuation using deep learning models
- Memory Efficient: Proper GPU memory management and cleanup
Installation
pip install whisperx-nemo-pipeline
With constraints (recommended for production):
pip install whisperx-nemo-pipeline -c constraints.txt
Quick Start
from whisperx_nemo_pipeline import create_transcription_pipeline
# Create pipeline
pipeline = create_transcription_pipeline(
audio_path="path/to/your/audio.wav",
model_name="large-v2",
device="cuda", # or "cpu"
stemming=True, # Enable source separation
backend="faster_whisper" # or "whisperx"
)
# Process audio
transcript_path, srt_path, timing_info = pipeline.process()
print(f"Transcript saved to: {transcript_path}")
print(f"Subtitles saved to: {srt_path}")
print(f"Processing took: {timing_info['total_time']:.2f}s")
Advanced Usage
from whisperx_nemo_pipeline import TranscriptionPipeline, TranscriptionConfig
# Custom configuration
config = TranscriptionConfig(
audio_path="path/to/audio.wav",
model_name="large-v2",
device="cuda",
batch_size=8,
language="en", # or None for auto-detection
stemming=True,
suppress_numerals=False,
backend="faster_whisper"
)
# Create pipeline with custom config
pipeline = TranscriptionPipeline(config)
# Process
transcript_path, srt_path, timing_info = pipeline.process()
Configuration Options
audio_path: Path to input audio filemodel_name: Whisper model size ("tiny", "base", "small", "medium", "large-v2")device: Computing device ("cuda" or "cpu")batch_size: Batch size for inference (default: 4)language: Language code or None for auto-detectionstemming: Enable audio source separation (default: True)suppress_numerals: Suppress numerical tokens (default: False)backend: "faster_whisper" or "whisperx"
Requirements
- Python 3.8+
- CUDA-capable GPU (recommended)
- See
requirements.txtfor full dependency list
License
MIT License
Metadata
Release files for whisperx-nemo-pipeline 1.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| whisperx_nemo_pipeline-1.0.7.tar.gz | 108.3 kB | Without provenance | Details for whisperx_nemo_pipeline-1.0.7.tar.gz |
Release files / whisperx_nemo_pipeline-1.0.7.tar.gz
| Download URL | whisperx_nemo_pipeline-1.0.7.tar.gz |
|---|---|
| Size | 108.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fab3150cf54999f59523090be25692d38b18f7776b3615722867ee36cb15f9ea
|
|
BLAKE2b-256 checksum How to use checksums |
62980cd33a47d6bc597bffcddb9a0b68436181a810a2e2f231c97d998647d991
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Security for whisperx-nemo-pipeline 1.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.