From 06497691ec65806532cc55590b6e51afdb87f276 Mon Sep 17 00:00:00 2001 From: developomp Date: Fri, 26 Aug 2022 20:43:17 +0900 Subject: [PATCH] remove noisetorch related stuff --- home/.config/systemd/user/noisetorch.service | 16 ---------------- src/setup/system/noisetorch.py | 19 ------------------- 2 files changed, 35 deletions(-) delete mode 100644 home/.config/systemd/user/noisetorch.service delete mode 100644 src/setup/system/noisetorch.py diff --git a/home/.config/systemd/user/noisetorch.service b/home/.config/systemd/user/noisetorch.service deleted file mode 100644 index 76149da..0000000 --- a/home/.config/systemd/user/noisetorch.service +++ /dev/null @@ -1,16 +0,0 @@ -[Unit] -Description=Noisetorch -Requires=sys-devices-pci0000:00-0000:00:14.0-usb1-1\x2d2-1\x2d2.1-1\x2d2.1:1.0-sound-card1-controlC1.device -After=sys-devices-pci0000:00-0000:00:14.0-usb1-1\x2d2-1\x2d2.1-1\x2d2.1:1.0-sound-card1-controlC1.device -After=pipewire.service - -[Service] -Type=simple -RemainAfterExit=yes -ExecStart=/usr/bin/noisetorch -i -s alsa_input.usb-GeneralPlus_USB_Audio_Device-00.mono-fallback -t 25 -ExecStop=/usr/bin/noisetorch -u -Restart=on-failure -RestartSec=3 - -[Install] -WantedBy=default.target diff --git a/src/setup/system/noisetorch.py b/src/setup/system/noisetorch.py deleted file mode 100644 index cd17d13..0000000 --- a/src/setup/system/noisetorch.py +++ /dev/null @@ -1,19 +0,0 @@ -from src.util import paru_install, run, copy_file - -name = "NoiseTorch" - - -def setup(): - """AI-powered microphone noise reduction""" - - # temporarily using noisetorch-git over noisetorch-bin due to this: - # https://github.com/noisetorch/NoiseTorch/issues/274 - paru_install("noisetorch-git") - - # Start NoiseTorch on boot - # https://github.com/noisetorch/NoiseTorch/wiki/Start-automatically-with-Systemd - - copy_file("home/.config/systemd/user/noisetorch.service") - run("systemctl --user daemon-reload") - run("systemctl --user start noisetorch") - run("systemctl --user enable noisetorch")