Skip to content

Commit a922a28

Browse files
committed
v1.1.5
1 parent 95710bf commit a922a28

4 files changed

Lines changed: 19 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
4+
## [1.1.5] - 2026-06-05
5+
- Default `boundary_softness=3` is changed from 7 to 3 because at 3 it performs the best on TIMIT and buckeye dataset.
6+
- Added warnings and parameter `self.warn_level` for verbose level. Use `PhonemeTimestampAligner.warn_level=3` for high verbosity.
7+
- Fixed small segments alignment. Previously one-word or half-words ("umm or oh") raised error of not enough phonemes for the given duration. That is patched up here: https://github.com/tabahi/bournemouth-forced-aligner/commit/e58757b5ff9c3cb71303067a8050b06d01f80097#diff-c530cc1a536c371d38e233b3192f5f7935f97342d6460e039edc8107fbdf0348
8+
9+
10+
311
## [1.1.4] - 2026-02-28
412
- `batch_size=16` parameter in `process_srt_file()` and `process_segments()`. Reduce it to prevent out-of-memory errors when processing large audio segments.
513

@@ -99,6 +107,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99107
- click>=8.0.0
100108
- phonemizer>=3.3.0
101109

110+
111+
[1.1.5]: https://github.com/tabahi/bournemouth-forced-aligner/releases/tag/v1.1.5
102112
[1.1.3]: https://github.com/tabahi/bournemouth-forced-aligner/releases/tag/v1.1.3
103113
[1.1.2]: https://github.com/tabahi/bournemouth-forced-aligner/releases/tag/v1.1.2
104114
[1.1.0]: https://github.com/tabahi/bournemouth-forced-aligner/releases/tag/v1.1.0

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ PhonemeTimestampAligner(
623623
enforce_all_targets=True, # Guarantee every phoneme in the transcript gets a timestamp
624624
ignore_noise=True, # Skip predicted noise frames in output
625625
extend_soft_boundaries=True, # Extend phoneme boundaries into adjacent low-confidence frames
626-
boundary_softness=7, # How far to extend (2=tight cores only, 7=generous)
626+
boundary_softness=3, # How far to extend (0=tight cores only, 7=generous)
627627
bad_confidence_threshold=0.6 # Flag segments where >60% of phonemes are low-confidence
628628
)
629629
```
@@ -648,7 +648,7 @@ PhonemeTimestampAligner(
648648
| `ensure_completeness` | `False` | After decoding, inserts any missing phonemes at their best estimated position. Set `True` for extra completeness gaurantee. |
649649
| `ignore_noise` | `True` | Drops predicted noise/silence frames from output. Set `False` to include them as `"noise"` entries. |
650650
| `extend_soft_boundaries` | `True` | Extends phoneme boundaries into adjacent frames that still carry some acoustic evidence. |
651-
| `boundary_softness` | `7` | Controls how far boundaries extend. `2``3` = tight phoneme cores; `7` = generous boundaries. |
651+
| `boundary_softness` | `3` | Controls how far boundaries extend. `0``1` = tight phoneme cores; `7` = generous boundaries. `3` gives the best result on TIMIT|
652652
| `bad_confidence_threshold` | `0.6` | Ratio of low-confidence phonemes that triggers a `bad_alignment` warning on a segment. |
653653

654654
**Model priority (highest → lowest):** `cupe_ckpt_path``model_name``preset` → defaults.
@@ -684,6 +684,9 @@ timestamps = aligner.process_srt_file(
684684
batch_size=4, # reduce if out-of-memory
685685
debug=True
686686
)
687+
688+
689+
aligner.warn_level = 3 # 0 = no warnings, 1 = important warnings (more critical for downstream tasks), 2 = all warnings (including low-confidence phonemes and bad confidence patterns). Critical errors will be raised as exceptions regardless of warn_level
687690
```
688691

689692
Returns a dict with a `"segments"` key. See [example_advanced.py](examples/example_advanced.py).
@@ -845,6 +848,8 @@ aligner.convert_to_textgrid(result, output_file="recording.TextGrid", include_co
845848

846849

847850

851+
852+
848853
---
849854

850855

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
55

66
[project]
77
name = "bournemouth-forced-aligner"
8-
version = "1.1.4"
8+
version = "1.1.5"
99
description = "Bournemouth Forced Aligner - Phoneme-level timestamp extraction"
1010
readme = "README.md"
1111
requires-python = ">=3.8"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def read_readme():
1212

1313
setup(
1414
name="bournemouth-forced-aligner",
15-
version="1.1.4",
15+
version="1.1.5",
1616
packages=find_packages(exclude=["tests*", "docs*", "examples*"]),
1717
python_requires=">=3.8",
1818

0 commit comments

Comments
 (0)