python-vocos
LOW
maintainer Smoolak
0 votes
scanned 2026-11-01 20:01:18.389276
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: Smoolak <smoolak@gmail.com>
2
pkgname=python-vocos
3
pkgver=0.1.0
4
pkgrel=1
5
pkgdesc='Fourier-based neural vocoder for high-quality audio synthesis'
6
arch=(any)
7
url='https://github.com/charactr-platform/vocos'
8
license=(MIT)
9
depends=(python python-pytorch python-torchaudio python-numpy python-scipy
10
python-einops python-yaml python-huggingface-hub python-encodec)
11
# The public EnCodec VCS provider requires git but does not declare it.
12
makedepends=(git python-build python-installer python-setuptools python-wheel)
13
optdepends=('python-pytorch-lightning: model training'
14
'python-jsonargparse: training command-line configuration'
15
'python-transformers: training evaluation models'
16
'python-matplotlib: training visualizations')
17
_commit=11b4628853c9e79dbc4577b01ecb02cfbc78255d
18
source=("vocos-$pkgver.tar.gz::$url/archive/$_commit.tar.gz")
19
sha256sums=('9ae624fb3a3d963273b4008eda54d530e6820b5a34d31495d7caa937e7e6d66b')
20
21
build() {
22
cd "vocos-$_commit"
23
python -m build --wheel --no-isolation
24
}
25
26
check() {
27
cd "vocos-$_commit"
28
# This release has no automated suite. Exercise its documented mel-to-audio
29
# inference path offline. Pretrained copy synthesis is checked after install.
30
python -m installer --destdir="$srcdir/check" dist/*.whl
31
local site_packages=("$srcdir"/check/usr/lib/python*/site-packages)
32
cd "$srcdir"
33
PYTHONPATH="${site_packages[0]}" python - <<'PYTEST'
34
import torch
35
from vocos import Vocos
36
from vocos.feature_extractors import MelSpectrogramFeatures
37
from vocos.heads import ISTFTHead
38
from vocos.models import VocosBackbone
39
40
torch.set_num_threads(2)
41
model = Vocos(MelSpectrogramFeatures(), VocosBackbone(100, 32, 64, 2),
42
ISTFTHead(32, 1024, 256)).eval()
43
audio = torch.sin(torch.arange(24000) * (2 * torch.pi * 440 / 24000))[None] * 0.1
44
features = model.feature_extractor(audio)
45
reconstructed = model(audio)
46
torch.testing.assert_close(reconstructed, model.decode(features))
47
assert reconstructed.shape[0] == 1 and 23000 <= reconstructed.shape[1] <= 25000
48
assert torch.isfinite(reconstructed).all()
49
print('Built-wheel mel extraction and Fourier waveform reconstruction: PASS')
50
PYTEST
51
}
52
53
package() {
54
cd "vocos-$_commit"
55
python -m installer --destdir="$pkgdir" dist/*.whl
56
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
57
}
58
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-01 20:01:18 | Low | 1 |