Package Details: noisetorch 0.12.2-2

Git Clone URL: https://aur.archlinux.org/noisetorch.git (read-only, click to copy)
Package Base: noisetorch
Description: Real-time microphone noise suppression on Linux.
Upstream URL: https://github.com/noisetorch/NoiseTorch
Licenses: GPL3
Provides: noisetorch
Submitter: erbrecht
Maintainer: g3tchoo
Last Packager: Scrumplex
Votes: 65
Popularity: 0.41
First Submitted: 2020-12-11 15:09 (UTC)
Last Updated: 2022-10-21 16:23 (UTC)

Latest Comments

1 2 3 4 5 6 Next › Last »

luntik2012 commented on 2023-12-26 16:25 (UTC) (edited on 2023-12-26 16:25 (UTC) by luntik2012)

please, clean ~/.cache/go-build after building golang projects, it takes 100M

Fedot commented on 2022-10-24 02:08 (UTC) (edited on 2022-10-24 02:09 (UTC) by Fedot)

Failed to install

 go: downloading golang.org/x/mobile v0.0.0-20220104184238-4a8be17bd2e3
build cache is required, but could not be located: GOCACHE is not defined and neither $XDG_CACHE_HOME nor $HOME are defined
>main.go:27: running "go": exit status 1
==> ERROR: A failure occurred in build().
    Aborting...
Finished with result: exit-code

Tried exporting ~/.cache to $XDG_CACHE_HOME and $GOCACHE, neither of which helped

014 commented on 2022-07-01 20:38 (UTC) (edited on 2022-07-01 20:38 (UTC) by 014)

Anyone run into this?

../rnnoise/src/rnn.c:151:12: error: indirection of non-volatile null pointer will be deleted, not trap [-Werror,-Wnull-dereference]
      else *(int*)0=0;
           ^~~~~~~~
../rnnoise/src/rnn.c:151:12: note: consider using __builtin_trap() or qualifying pointer with 'volatile'
2 errors generated.
make: *** [Makefile:2: default] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

Technetium1 commented on 2022-06-13 16:27 (UTC) (edited on 2022-06-13 16:27 (UTC) by Technetium1)

Please take notice that the name may have to be changed very soon. In order to keep all votes and comments on this package, submit a new one with the new project name and contact the mailing list or a Trusted User to have the packages merged. Discussion on new names & The issue causing this

renanvcampos commented on 2022-06-08 22:29 (UTC)

About error:

2022/06/04 23:57:38 Reading JSON for latest_release failed json: cannot unmarshal object into Go value of type main.github_releases

It`s related to Github rate limit issue.

The url called during startup is: https://api.github.com/repos/noisetorch/NoiseTorch/releases/latest

{"message":"API rate limit exceeded for ***.***.***.***. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"}

stasadev commented on 2022-06-05 10:53 (UTC) (edited on 2022-06-05 11:07 (UTC) by stasadev)

I think this note is no longer relevant because the upstream maintainer has moved away from this project https://github.com/noisetorch/NoiseTorch/discussions/265

In any case, this patch will still be merged, because the program is not fully functional now. I'll leave my previous comment, so people know how to fix it until a new version comes out.

Scrumplex commented on 2022-06-05 09:12 (UTC)

I don't know if upstream's policy about modifications is still the case.

See comment in PKGBUILD

# Note: The upstream maintainer does not allow ANY modifications
# to the source code. Please refrain from doing so.
# https://lists.archlinux.org/pipermail/aur-general/2021-May/036230.html

stasadev commented on 2022-06-05 07:50 (UTC) (edited on 2022-06-05 11:08 (UTC) by stasadev)

NoiseTorch doesn't work without internet in v0.12.0, temporary patch:

# Maintainer:  Travis Collins <erbrecht at pobox dot com>
# Contributor: Justin Kromlinger <hashworks@archlinux.org>
# Contributor: Sefa Eyeoglu <contact@scrumplex.net>

# Note: The upstream maintainer does not allow ANY modifications
# to the source code. Please refrain from doing so.
# https://lists.archlinux.org/pipermail/aur-general/2021-May/036230.html

pkgname=noisetorch
pkgver=0.12.0
pkgrel=2
pkgdesc='Real-time microphone noise suppression on Linux.'
arch=('x86_64')
url=https://github.com/noisetorch/NoiseTorch
license=('GPL3')
depends=('pulseaudio' 'polkit' 'hicolor-icon-theme')
makedepends=('go' 'cmake' 'git')
provides=('noisetorch')
install="${pkgname}.install"
source=(
    "$pkgname::git+https://github.com/noisetorch/NoiseTorch.git#tag=v${pkgver}"
    "https://github.com/noisetorch/NoiseTorch/pull/317.patch"
    "git+https://github.com/noisetorch/c-ringbuf.git"
    "git+https://github.com/noisetorch/rnnoise.git"
)
sha512sums=('SKIP'
            'SKIP'
            'SKIP'
            'SKIP')


prepare() {
    cd "$pkgname"

    # fix(updates): Fix crash when no internet connection
    patch -Np1 -i "$srcdir/317.patch"

    git submodule init
    git config submodule.c-ringbuf.url "${srcdir}/c-ringbuf"
    git config submodule.rnnoise.url "${srcdir}/rnnoise"
    git submodule update
}

build() {
    cd "$pkgname"

    export GOPATH="$srcdir/go"

    pushd "c/ladspa"
    make
    popd

    vendor_flags="-X main.version=${pkgver} -X main.distribution=archlinux"

    export CGO_CPPFLAGS="${CPPFLAGS}"
    export CGO_CFLAGS="${CFLAGS}"
    export CGO_CXXFLAGS="${CXXFLAGS}"
    export CGO_LDFLAGS="${LDFLAGS}"
    export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
    go generate
    go build -ldflags "$vendor_flags -linkmode=external" -o bin/noisetorch
    go clean -modcache
}

package() {
    cd "$pkgname"

    install -D -m755 bin/noisetorch "${pkgdir}/usr/bin/noisetorch"
    install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
    install -D -m644 assets/noisetorch.desktop "${pkgdir}/usr/share/applications/noisetorch.desktop"
    install -D -m644 assets/icon/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/icon-LICENSE"
    install -D -m644 assets/icon/noisetorch.png "${pkgdir}/usr/share/icons/hicolor/256x256/apps/noisetorch.png"
}

ranixon commented on 2022-06-05 02:59 (UTC) (edited on 2022-06-05 05:32 (UTC) by ranixon)

EDIT: I don't know what the hell happend, but after I ran noisetorch -log and gave me the log, for some reason started working normally including the systemd service.


Hi, I can't launch noisetorch. After install it I made the systemd unit as is explained here (I installed it using yay): https://github.com/noisetorch/NoiseTorch/wiki/Start-automatically-with-Systemd

Resulting in using the path where the binary is placed with this aur package, the directory is ~/.config/systemd/user/noisetorch.service:

[Unit]
Description=Noisetorch Noise Cancelling
Requires=sys-devices-pci0000:00-0000:00:08.1-0000:08:00.4-sound-card1-controlC1.device
After=sys-devices-pci0000:00-0000:00:08.1-0000:08:00.4-sound-card1-controlC1.device
# Depending on if you're using pulseaudio or pipewire, uncomment the correct line
# After=pulseaudio.service
After=pipewire.service

[Service]
Type=simple
RemainAfterExit=yes
ExecStart=/usr/bin/noisetorch -i -s alsa_input.pci-0000_08_00.4.analog-stereo -t 95
ExecStop=/usr/bin/noisetorch -u
Restart=on-failure
RestartSec=3

[Install]
WantedBy=default.target

Enable it with systemctl --user enable noisetorch.service then reboot, run systemctl --user status noisetorch.service and gives this output:

Loaded: loaded (/home/ramiro/.config/systemd/user/noisetorch.service; enabled; vendor preset: enabled)
 Active: activating (auto-restart) (Result: exit-code) since Sat 2022-06-04 23:53:44 -03; 2s ago
Process: 1265 ExecStart=/usr/bin/noisetorch -i -s alsa_input.pci-0000_08_00.4.analog-stereo -t 95 (code=exited, status=2)
Main PID: 1265 (code=exited, status=2)
    CPU: 32ms

Later running journalctl --user-unit=noisetorch.service I have:

jun 04 23:57:38 Ramiro-PCA systemd[750]: Started Noisetorch Noise Cancelling.
jun 04 23:57:38 Ramiro-PCA noisetorch[2502]: 2022/06/04 23:57:38 Reading JSON for latest_release failed json: cannot unmarshal object into Go value of type main.github_releases
jun 04 23:57:38 Ramiro-PCA noisetorch[2502]: panic: runtime error: index out of range [0] with length 0
jun 04 23:57:38 Ramiro-PCA noisetorch[2502]: goroutine 1 [running]:
jun 04 23:57:38 Ramiro-PCA noisetorch[2502]: main.getLatestRelease()
jun 04 23:57:38 Ramiro-PCA noisetorch[2502]:         noisetorch/update.go:199 +0x477
jun 04 23:57:38 Ramiro-PCA noisetorch[2502]: main.init()
jun 04 23:57:38 Ramiro-PCA noisetorch[2502]:         noisetorch/update.go:77 +0x2e
jun 04 23:57:38 Ramiro-PCA systemd[750]: noisetorch.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
jun 04 23:57:38 Ramiro-PCA systemd[750]: noisetorch.service: Failed with result 'exit-code'.
jun 04 23:57:41 Ramiro-PCA systemd[750]: noisetorch.service: Scheduled restart job, restart counter is at 85.
jun 04 23:57:41 Ramiro-PCA systemd[750]: Stopped Noisetorch Noise Cancelling.

And now I can't run noisetorchin konsole and gives:

2022/06/04 23:51:58 Reading JSON for latest_release failed json: cannot unmarshal object into Go value of type main.github_releases
panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
main.getLatestRelease()
        noisetorch/update.go:199 +0x477
main.init()
        noisetorch/update.go:77 +0x2e

What I'm doing wrong here?

robiot commented on 2022-05-31 14:05 (UTC)

Looks good! @Scrumplex