Search Criteria
Package Details: noisetorch 0.12.2-4
Package Actions
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: | GPL-3.0-or-later |
Provides: | noisetorch |
Submitter: | erbrecht |
Maintainer: | g3tchoo (HurricanePootis) |
Last Packager: | HurricanePootis |
Votes: | 72 |
Popularity: | 1.69 |
First Submitted: | 2020-12-11 15:09 (UTC) |
Last Updated: | 2024-08-06 01:16 (UTC) |
Dependencies (6)
- hicolor-icon-theme (hicolor-icon-theme-gitAUR)
- polkit (polkit-gitAUR, polkit-consolekitAUR)
- pulse-native-provider (pulseaudio-gitAUR, pipewire-full-pulse-gitAUR, pipewire-pulse-gitAUR, pipewire-pulse, pulseaudio)
- cmake (cmake-gitAUR, cmake3AUR) (make)
- git (git-gitAUR, git-glAUR) (make)
- go (go-gitAUR, gcc-go-gitAUR, gcc-go-snapshotAUR, gcc-go) (make)
Latest Comments
« First ‹ Previous 1 2 3 4 5 6 Next › Last »
svenstaro commented on 2021-02-09 19:27 (UTC)
Are you sure it's their own implementation or that it's just copied into there from somewhere? I'd ideally like to devendor it entirely (and build the C stuff in (a) separate package(s)) and then just link to it. Think that's doable?
erbrecht commented on 2021-02-09 15:18 (UTC)
Ok, after looking at this for just a bit, here is what I see. Initially, noisetorch was using the ladspa plugin provided by https://github.com/werman/noise-suppression-for-voice (which in turn uses xiph's rnnoise library. It was embedding the binary, and I modified it to make use of the actual shared library.
Now, noisetorch has its own implementation of the ladspa plugin, again based on xiph's rnnoise library (provides librnnoise.so). I think what we need is the rnnoise_ladspa.so that is built here https://github.com/lawl/NoiseTorch/tree/master/c/ladspa. I have a PKGBUILD available here https://github.com/erbrecht/noisetorch-aur-package. It tries to rely on the rnnoise.so shared library, but it doesn't work since it's not the ladspa plugin (I think).
erbrecht commented on 2021-02-09 14:30 (UTC)
Sorry it took a while. I'm now setting the capability directly on the binary in the install file. Thanks for that suggestion.
I took a look at your changes and I implemented most of them except the dependency 2. I'm also working on linking rnnoise. It should be pretty straight forward. I'll try to get to that as soon as I can.
I originally had hicolor-icon-theme as a dependency but removed it after this feedback (https://bbs.archlinux.org/viewtopic.php?pid=1917440#p1917440). It seems to make sense.
Also, export GOPATH="$srcdir/go" is there so that the go build dependencies don't end up in the user's system. go clean -modcache cleans the source directory after the build so all those dependencies don't take up space. I'd be inclined to leave those unless there is a pressing reason to remove them. I did remove the go clean command from the prepare function since it's not really necessary before the build.
svenstaro commented on 2021-02-05 15:29 (UTC)
Yeah, that sounds like a sound idea. Also, take a look at my changes and perhaps adopt most of them.
malteger commented on 2021-02-04 09:42 (UTC)
Is it the desired behaviour that the noisetorch binary sets the capabilities for itself? As noisetorch is no longer usable without the capability
cap_sys_resource
I would assume that the best place to set it is the install file (like it is done for e.g. ping).svenstaro commented on 2021-02-03 15:48 (UTC)
Ideally I'd want to separately package the C dependencies and dynamically link them in. As a start, I packaged rnnoise. Can you try linking that dynamically instead of the weird soname embedding that's going on?
Apart from that, this would be my current PKGBUILD: https://gitlab.archlinux.org/-/snippets/5
erbrecht commented on 2021-02-03 14:14 (UTC)
I did some minor cleanup on the PKGBUILD. It follows the go packaging guidelines as far as I can tell, and I believe it is reproducible. Updating the pkgver in the PKGBUILD is all I have been doing for the past couple releases, otherwise the current version builds no problem without intervention.
svenstaro commented on 2021-02-03 13:41 (UTC)
Make sure to clean up the package and make it reproducible/make it comply with go package guidelines.
erbrecht commented on 2021-02-03 13:39 (UTC)
@Svenstaro Absolutely not, go right ahead! Is there anything you need me to do?
@znoble360 The readme is indeed incorrect, but if the application prompts for creds to set the capability, it appears to operates on itself instead of a fixed path 1 and 2.
That executable function might have problems dealing with symlinks, but if the package is installed as-is, it should work. I haven't touched the setcap command on my system and I see:
svenstaro commented on 2021-02-03 06:56 (UTC)
You mind me pulling this into [community]?
« First ‹ Previous 1 2 3 4 5 6 Next › Last »