Pass through the average log probability (transcription confidence score)
from ctranslate2 to the final segment output. The field is NotRequired
so existing code constructing segments without it remains valid.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Forward the existing --hf_token CLI argument to faster-whisper's
WhisperModel via a new use_auth_token parameter on load_model(),
enabling downloads of gated/private HuggingFace models.
- Add `model_cache_only` param to `load_align_model()`, pass as `local_files_only` to HuggingFace `from_pretrained` calls
- Forward `model_dir` and `model_cache_only` to both `load_align_model` call sites (initial load and language-change reload)
- Add `cache_dir` param to `DiarizationPipeline.__init__`, forward to pyannote `Pipeline.from_pretrained`
- Pass `--model_dir` as `cache_dir` when constructing `DiarizationPipeline` in CLI
Previously only the ASR model respected these flags. Alignment and diarization models would always download from HuggingFace to the default cache, breaking offline and custom-cache workflows.
---------
Co-authored-by: Barabazs <31799121+Barabazs@users.noreply.github.com>
* feat: upgrade pyannote-audio dependency to v4
* fix: rename use_auth_token to token for pyannote-audio v4 compatibility
* fix: add omegaconf dep
* fix: use structured output API for pyannote-audio v4 diarization
pyannote-audio 4.x no longer returns a plain Annotation (or tuple when>
return_embeddings=True). It now returns a structured output with
speaker_diarization and speaker_embeddings attributes.
* feat: switch default diarization model to speaker-diarization-community-1
Update default from pyannote/speaker-diarization-3.1 to
pyannote/speaker-diarization-community-1 (pyannote-audio v4),
add CC-BY-4.0 attribution, and update README for v4 API changes.
* fix: correct markdown link formatting for silero-vad in README.md
* chore: update version to 3.8.0
Co-authored-by: Giorgio Azzinnaro <giorgio@azzinna.ro>
* fix: derive SRT/VTT cue times from word-level timestamps (#1315)
Subtitle cue start/end times were sourced from VAD segment boundaries
instead of word-level timestamps from forced alignment. This caused cues
to appear prematurely and could produce backwards chronological ordering
when VAD segments overlap.
Use min(word starts) / max(word ends) for cue timing, falling back to
segment-level times only when all words are unalignable.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: bump version to 3.7.7 in pyproject.toml
---------
Co-authored-by: Claude-Assistant <noreply@anthropic.com>
Replace O(n*m) pandas operations with O(n log m) interval tree queries
for speaker assignment, where n = words/segments and m = diarization segments.
Performance improvement:
- 7-minute video (1185 words, 147 segments): 73.9s -> 0.32s (228x faster)
- 3-hour podcast: Minutes of processing -> Seconds
Changes:
- Add IntervalTree class using sorted array + binary search
- Refactor assign_word_speakers to use interval tree for overlap queries
- Maintain backward compatibility with same function signature
- Identical output to original implementation
The interval tree uses numpy arrays for efficient storage and binary search
(np.searchsorted) for O(log n) candidate finding, then filters candidates
for actual overlaps.
Fixes#1335
* chore: drop python 3.9 support
- Update requires-python to >=3.10
- Remove onnxruntime constraint (only needed for 3.9)
- Simplify numpy (remove version markers and upper bound)
- Remove pandas upper bound (<2.3.0 was for 3.9 compat)
- Remove av direct dependency (transitive via faster-whisper)
* chore(ci): remove python 3.9 from workflows
- Update build-and-release to use Python 3.10
- Remove 3.9 from python-compatibility matrix
* chore: bump version to 3.7.6
* fix: pin huggingface-hub<1.0.0 for pyannote-audio compatibility
pyannote-audio uses the deprecated `use_auth_token` parameter which was removed in huggingface-hub v1.0.0
* fix: upgrade yanked dependencies
* chore: update version to 3.7.5
* feat: update Python version requirement to be compatible with 3.13
* feat: add Python 3.13 to compatibility matrix
* feat: update onnxruntime dependency for Python version compatibility
* fix: drop onnxruntime restriction for python >= 3.10
- feat: upgrade PyTorch to 2.7.1 and CUDA 12.8
* Update README setup to require CUDA toolkit 12.8 instead of 12.4 (Linux and Windows)
* Bump torch dependency from 2.6.0 to 2.7.1
* Switch the PyTorch CUDA wheel index from cu124 to cu128
- Revert "docs: add troubleshooting section for libcudnn dependencies in README"
* The issue of relying on two different versions of CUDNN in this project has been resolved.
- build(pyproject): relax python version and constrain package deps
* Only download torch from PyTorch; obtain all other packages from PyPI.
* Restrict numpy, onnxruntime, pandas to be compatible with Python 3.9
- build(pyproject): require triton 3.3.0+ for arm64 support
* Add triton version 3.3.0 or newer to the dependencies to support arm64 architecture.
- build: skip Triton on Windows since it isn't supported
* Add a platform marker to the triton dependency to skip it on Windows, as triton does not support Windows.
- build: configure PyTorch sources for cross-platform compatibility
* macOS uses CPU-only PyTorch from pytorch-cpu index
* Linux and Windows use CUDA 12.8 PyTorch from pytorch index
* triton only installs on Linux with CUDA 12.8 support
* Update lockfile to support multi-platform builds
- fix: restrict av to <16.0.0 for Python 3.9 compatibility
* Add av<16.0.0 to dependencies to maintain Python 3.9 support
* Update comment to include av in the restriction list
* Update uv.lock accordingly
PyAV dropped Python 3.9 support in v16.0.0:
https://github.com/PyAV-Org/PyAV/commit/106089447cab9dc6d3ca2d1ab7e0aeff76d7a6a4
- fix: resolve PyTorch ARM64 platform compatibility issue
* Update uv.lock to properly handle aarch64 platforms for PyTorch dependencies
* Add resolution markers for ARM64 Linux systems to use CPU-only PyTorch builds
* Ensure CUDA builds are only used on x86_64 platforms where supported
Resolves ARM64 Docker build failures by preventing uv from attempting to install CUDA PyTorch on unsupported platforms
- chore: change .python-version to 3.10
---
Signed-off-by: CHEN, CHUN <jim60105@gmail.com>
Signed-off-by: Jim Chen <Jim@ChenJ.im>
Co-authored-by: GitHub Copilot <bot@ChenJ.im>
Since the current model is a wav2vec2 pre-trained model for Vietnamese audio, it won't work with alignment tasks. To make it work as expected, I recommend chaining to a fine-tuned ASR version.
fix(asr): load VAD model on correct CUDA device
Previously, the VAD sub‐model was always initialized on the default CUDA device (cuda:0), even when a higher device_index was specified. This change sets `device_vad` to `cuda:{device_index}` whenever `device == 'cuda'`, while falling back to the original `device` string for non‐CUDA cases. This ensures the VAD model is loaded on the intended GPU.
Co-authored-by: dujing <dujing@xmov.ai>
Co-authored-by: Barabazs <31799121+Barabazs@users.noreply.github.com>