Package Details: python-torchaudio 2.11.0-1

Git Clone URL: https://aur.archlinux.org/python-torchaudio.git (read-only, click to copy)
Package Base: python-torchaudio
Description: Data manipulation and transformation for audio signal processing, powered by PyTorch
Upstream URL: https://github.com/pytorch/audio
Licenses: BSD-2-Clause
Conflicts: python-torchaudio-git
Submitter: HenryJia
Maintainer: NBonaparte (lubosz)
Last Packager: lubosz
Votes: 10
Popularity: 0.103987
First Submitted: 2020-08-27 18:23 (UTC)
Last Updated: 2026-07-11 16:03 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5

yan12125 commented on 2021-06-30 02:00 (UTC)

Besides updating to 0.9.0, I also need to add BUILD_SOX=1, or "No audio I/O backend is available" occurred for torchaudio.load(). Here is the PKGBUILD I use:

--- a/python-torchaudio/PKGBUILD
+++ b/python-torchaudio/PKGBUILD
@@ -3,8 +3,8 @@

 pkgname=python-torchaudio
 _pkgname=audio
-pkgver=0.8.0
-pkgrel=2
+pkgver=0.9.0
+pkgrel=1
 pkgdesc="Data manipulation and transformation for audio signal processing, powered by PyTorch"
 arch=('any')
 url="https://github.com/pytorch/audio"
@@ -22,12 +22,12 @@ build() {
   cd "$srcdir/${_pkgname}"
   git config submodule.kaldi.url "$srcdir/kaldi"
   git submodule update third_party/kaldi/submodule
-  python setup.py build
+  BUILD_SOX=1 python setup.py build
 }

 package() {
   cd "$srcdir/${_pkgname}"
-  python setup.py install --root="$pkgdir"/ --optimize=1
+  BUILD_SOX=1 python setup.py install --root="$pkgdir"/ --optimize=1
   install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }

yan12125 commented on 2021-03-06 10:15 (UTC)

With my previously-posted PKGBUILD, pip list -o complains that torchaudio is out-dated as the latter has version 0.8.0a0+099d788 instead of 0.8.0. The updated PKGBUILD is uploaded to https://github.com/yan12125/repo/blob/python-torchaudio/archlinuxcn/python-torchaudio/PKGBUILD