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
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The algorithm uses cross-correlation of standardised Mel-Frequency Cepstral Coef

The tool outputs the calculated offset in seconds, and a ["standard score"](https://en.wikipedia.org/wiki/Standard_score) indicating the prominence of the chosen correlation peak. This can be used as a very rough estimate of the accuracy of the calculated offset - one with a score greater than ten is likely to be correct (at least for audio without similar repeated sections) within the accuracy of the tool; an offset with a score less than five is unlikely to be correct, and a manual check should be carried out. Note that the value of the score depends on the length of the audio analysed.

The tool uses [FFmpeg](https://ffmpeg.org) for transcoding, so should work on all file formats supported by FFmpeg. It is tested for compatibility with Python 3.8-3.12 on Linux, Windows and macOS. Other Python versions and platforms may or may not work.
The tool uses [FFmpeg](https://ffmpeg.org) for transcoding, so should work on all file formats supported by FFmpeg. It is tested for compatibility with Python 3.9-3.14 on Linux, Windows and macOS. Other Python versions and platforms may or may not work.

The aim of this open source project is to provide a simple tool and library that do one job well, and that can be the basis of customisation for more complex use cases. The [forks of the base respository](https://github.com/bbc/audio-offset-finder/network/members) are worth exploring if you need a feature that is not included here. The maintainers welcome pull requests with bug fixes, new features and other improvements that fit this philosophy - please see [CONTRIBUTING.md](CONTRIBUTING.md) for details.

Expand Down
12 changes: 7 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
librosa==0.10.2
matplotlib==3.7.3
numpy==1.22.3
pytest==9.0.3
scipy==1.10.0
librosa>=0.10.2
matplotlib>=3.7.3
numpy>=1.22.3
pytest>=8.4.2; python_version < "3.10"
pytest>=9.0.3; python_version >= "3.10"
scipy>=1.10.0,!=1.15.*; platform_system == "Darwin" and python_version < "3.11"
scipy>=1.10.0; platform_system != "Darwin" or python_version >= "3.11"
16 changes: 14 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,26 @@ long_description_content_type = text/markdown
classifiers =
License :: OSI Approved :: Apache Software License
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3.13
Programming Language :: Python :: 3.14

[options]
packages = find:
python_requires = >=3.9
# SciPy 1.15.x macOS wheels fail to load on macOS 27+ (malformed __thread_bss
# section), and SciPy 1.16+ requires Python 3.11+, so Python 3.10 on macOS
# must skip 1.15.x
install_requires =
librosa >= 0.10.2
matplotlib >= 3.7.3
numpy >= 1.22.3,<2
scipy >= 1.10.0
numpy >= 1.22.3
scipy >= 1.10.0, != 1.15.*; platform_system == "Darwin" and python_version < "3.11"
scipy >= 1.10.0; platform_system != "Darwin" or python_version >= "3.11"

[options.extras_require]
test = pytest >= 6.2.5
Expand Down
Loading