Skip to content

Commit 871d71f

Browse files
committed
fix(deps): pin torch and torchaudio for stable install
Bump version to 0.1.1 and constrain torch/torchaudio to <2.9 to avoid runtime failures caused by newer torchaudio requiring torchcodec for audio I/O. Also update docs to clarify that diarize installs a compatible torch/torchaudio range automatically.
1 parent a6ad6ed commit 871d71f

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ result.to_rttm("meeting.rttm")
5858
```
5959

6060
Requires Python 3.9+. Supports WAV, MP3, FLAC, OGG, and other formats via soundfile/libsndfile.
61+
`diarize` pins a compatible `torch/torchaudio` range during install, so no extra manual pinning is required.
6162

6263
📖 **[Full documentation](https://foxnosetech.github.io/diarize/)** — installation, API reference, architecture, benchmarks.
6364

docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ pip install diarize
1111
```
1212

1313
Requires Python 3.9+. All models download automatically on first use.
14+
`diarize` installs a compatible `torch/torchaudio` range automatically.
1415

1516
```python
1617
from diarize import diarize

docs/quickstart.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ pip install diarize
77
```
88

99
Requires Python 3.9+. All models (Silero VAD, WeSpeaker) are downloaded
10-
automatically on first use.
10+
automatically on first use. `diarize` also installs a compatible
11+
`torch/torchaudio` range automatically.
1112

1213
## Basic Usage
1314

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "diarize"
7-
version = "0.1.0"
7+
version = "0.1.1"
88
description = "Speaker diarization for Python — detect who spoke when in audio files. CPU-only, no GPU, no API keys, no account signup. Automatic speaker count detection."
99
readme = "README.md"
1010
license = "Apache-2.0"
@@ -51,8 +51,8 @@ dependencies = [
5151
"pydantic>=2.0",
5252
"eval_type_backport>=0.2.0; python_version < '3.10'",
5353
"soundfile>=0.12",
54-
"torch>=1.13",
55-
"torchaudio>=0.13",
54+
"torch>=1.13,<2.9",
55+
"torchaudio>=0.13,<2.9",
5656
"silero-vad>=5.0",
5757
"wespeakerruntime>=1.0",
5858
"scikit-learn>=1.2",

0 commit comments

Comments
 (0)