From 07983a4264ca39cac656b1937b57bb88a1d35be2 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Sun, 22 Oct 2023 11:03:47 -0700 Subject: [PATCH] audio/py-auditok: New port: Audio/acoustic activity detection and audio segmentation tool --- audio/Makefile | 1 + audio/py-auditok/Makefile | 26 ++++++++++++++++++++++++++ audio/py-auditok/distinfo | 3 +++ audio/py-auditok/pkg-descr | 4 ++++ 4 files changed, 34 insertions(+) create mode 100644 audio/py-auditok/Makefile create mode 100644 audio/py-auditok/distinfo create mode 100644 audio/py-auditok/pkg-descr diff --git a/audio/Makefile b/audio/Makefile index e15b0fcce84b..f3e01cbe9d83 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -629,6 +629,7 @@ SUBDIR += py-apetag SUBDIR += py-aubio SUBDIR += py-audioread + SUBDIR += py-auditok SUBDIR += py-discid SUBDIR += py-discogs-client SUBDIR += py-essentia diff --git a/audio/py-auditok/Makefile b/audio/py-auditok/Makefile new file mode 100644 index 000000000000..bb4fa2663d9d --- /dev/null +++ b/audio/py-auditok/Makefile @@ -0,0 +1,26 @@ +PORTNAME= auditok +DISTVERSION= 0.2.0 +CATEGORIES= audio python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Audio/acoustic activity detection and audio segmentation tool +WWW= https://github.com/amsehili/auditok/ + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +# dependencies aren't listed in setup.py and pyproject.toml, see https://github.com/amsehili/auditok/issues/46 +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \ + ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}pyaudio>0:audio/py-pyaudio@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pydub>0:audio/py-pydub@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}tqdm>0:misc/py-tqdm@${PY_FLAVOR} + +USES= python +USE_PYTHON= distutils concurrent autoplist pytest + +NOARCH= yes + +.include diff --git a/audio/py-auditok/distinfo b/audio/py-auditok/distinfo new file mode 100644 index 000000000000..f04c087eae35 --- /dev/null +++ b/audio/py-auditok/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1697993685 +SHA256 (auditok-0.2.0.tar.gz) = 46c512e287b2e13df4819774166af32b236d754afbe6b0dc87281b233e5ae688 +SIZE (auditok-0.2.0.tar.gz) = 2162248 diff --git a/audio/py-auditok/pkg-descr b/audio/py-auditok/pkg-descr new file mode 100644 index 000000000000..5eda7fd0f4c3 --- /dev/null +++ b/audio/py-auditok/pkg-descr @@ -0,0 +1,4 @@ +auditok is an Audio Activity Detection tool that can process online data +(read from an audio device or from standard input) as well as audio files. + +It can be used as a command-line program or by calling its API.