v6.2.3

agentscope-ai/QwenPawv6.2.3Sep 23, 2026by adamnsandle

Upgrading?

AI Summary

Torchaudio has been demoted from a required dependency to an optional one. The library now requires only torch, with audio I/O backends like torchaudio or torchcodec needing explicit installation. Import errors related to missing onnxruntime have also been resolved.

Key Highlights

  • Torchaudio is now optional; only torch is required
  • Audio I/O backends: install via [audio], [codec], or [all] extras
  • Support for both torchaudio and torchcodec backends
  • Fixed import failure when onnxruntime is not installed

Breaking Changes

  • Torchaudio is no longer required by default; users must install a backend (torchaudio or torchcodec) to use read_audio/save_audio
  • Importing silero_vad will now raise an error if onnxruntime is not installed (previously it failed at a different point)

New Features

  • Lazy loading of sequence path to fix import reliability
  • Explicit error messages guiding users to install the correct backend

Full Release Notes

torchaudio is now an optional dependency instead of required. Only torch is required — the model itself never used torchaudio, only the `read_audio` / `save_audio` helpers did.

Users who need audio I/O must now install a backend explicitly:

- `pip install silero-vad[audio]` (torchaudio)
- `pip install silero-vad[codec]` (torchcodec)
- `pip install silero-vad[all]` (everything)

Key changes:

- `read_audio` / `save_audio` now work with either torchaudio or torchcodec; with neither installed they raise an error naming the extra to install
- Fixed: `import silero_vad` failed when onnxruntime was not installed — the sequence path is now imported lazily
- numpy is now declared in [onnx-cpu] / [onnx-gpu]

If you load audio yourself, no backend is needed at all:

```python3
from silero_vad import load_silero_vad, get_speech_timestamps

model = load_silero_vad()
audio = ...                                      # 1-D float32 torch.Tensor from any source
ts = get_speech_timestamps(audio, model, return_seconds=True)
```

Related Repositories