Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
(in `default`). Existing users see no behavior change; downstream consumers
building with `--no-default-features` no longer pull `faer` (enables wasm32 builds).

### Added (M1 — Powerset segmentation)
- `polyvoice::segmentation` module: `Segmenter` trait, `RawSegment`, `SegmentationError`,
`PowersetSegmenter` (ONNX-backed), `PowersetDecoder`, `PowersetClass`, `FrameLabel`,
`Aggregator`, `WindowOutput`, `AggregationConfig`.
- New Cargo feature `segmentation` (in default features). The pure-Rust algorithmic
core (decoder, aggregator, hungarian) is wasm32-clean; only `PowersetSegmenter`
additionally requires `onnx`.
- In-tree Kuhn-Munkres minimum-cost assignment (~50 LOC) for sliding-window speaker
index alignment — no external dependency added.
- New manifest entry `[models.powerset_fp32]` for sherpa-onnx-pyannote-segmentation-3-0.
Profiles still resolve to the legacy `silero_vad` segmenter; M6 swaps them.

## [0.5.2] - 2025-05-05

### Added
Expand Down
7 changes: 6 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ categories = ["multimedia::audio", "science"]
crate-type = ["cdylib", "rlib"]

[features]
default = ["spectral"]
default = ["spectral", "segmentation"]
# ONNX-based embedding extractors (pulls ort).
onnx = ["dep:ort"]
# C FFI bindings.
Expand All @@ -30,6 +30,11 @@ xnnpack = ["onnx", "ort/xnnpack"]
# Spectral clustering backend (pulls faer for SVD/eigendecomp).
spectral = ["dep:faer"]

# Powerset speaker segmentation (sherpa-onnx-pyannote-segmentation-3-0).
# The pure-Rust algorithmic core (decoder, aggregator, hungarian) compiles to
# wasm32-clean. The ONNX-backed `PowersetSegmenter` additionally requires `onnx`.
segmentation = []

# Model profile bundles. M0 only emits metadata; CLI uses these to pick which
# manifest entries to ensure(). M5 will introduce INT8 model variants.
profile-mobile = []
Expand Down
Loading
Loading