如何在 Linux 上安裝高級均衡器“PulseEffects”

如果您一直在尋找適用於 Linux 的高級音頻均衡器,那就別再找了,因為您來對地方了。 在這裡,我將向您介紹 PulseEffects,它是 PulseAudio 的均衡器、限制器、混響和壓縮器。

那麼讓我們看看如何在 Ubuntu/ 上安裝pulseeffectsFedora/Arch 發行版。

PulseAudio 是通過 freedesktop.org 項目分發的免費且開源的具有網絡功能的聲音服務器程序。 它主要在 Linux 和各種 BSD 發行版上運行。 當您聽到從筆記本電腦/台式機傳出的任何音頻時,請知道 PulseAudio 負責此過程。 PulseEffects 是一個用於管理和控制 PulseAudio 在 Linux 和其他 Unix 系統上的音頻效果的應用程序。

從 PulseEffects 2.0.0 版本開始,可以在將效果應用於應用程序輸出的同時將效果應用於麥克風輸出。

在 Linux 上有多種安裝 PulseEffects 的方法,最常見的是:

  1. 使用由您的 Linux 發行版分發的二進製文件
  2. 從源代碼構建它 – 在 github 上可用
  3. 從安裝 平面集線器 使用 平板包裝

在本指南中,我們將了解從二進制安裝和使用 flatpak。 不建議從源代碼構建,因為您必須手動解決依賴關係問題,從一個 Linux 發行版到另一個發行版都會有所不同。

在 Ubuntu 上安裝 PulseEffects

我們將看看使用二進制包和 flatpak 安裝 PulseEffects。

使用二進制包在 Ubuntu 上安裝 PulseEffects

啟動板上提供了 PulseEffects 的 Ubuntu 二進制包。 此二進制安裝已在 Ubuntu 16.04 和 Ubuntu 17.04 桌面版本上進行測試

Ubuntu 16.04(64 位)

$ wget https://launchpad.net/~yunnxx/+archive/ubuntu/gnome3/+files/pulseeffects_1.313entornosgnulinuxenial-1ubuntu1_amd64.deb

現在通過運行安裝二進制包:

$ sudo dpkg -i pulseeffects_1.313entornosgnulinuxenial-1ubuntu1_amd64.deb 

Selecting previously unselected package pulseeffects.
(Reading database ... 212478 files and directories currently installed.)
Preparing to unpack pulseeffects_1.313entornosgnulinuxenial-1ubuntu1_amd64.deb ...
Unpacking pulseeffects (1.313entornosgnulinuxenial-1ubuntu1) ...
dpkg: dependency problems prevent configuration of pulseeffects:
pulseeffects depends on python-cairo; however:
Package python-cairo is not installed.
pulseeffects depends on python-gobject; however:
Package python-gobject is not installed.
pulseeffects depends on python-gst-1.0; however:
Package python-gst-1.0 is not installed.
pulseeffects depends on swh-plugins; however:
Package swh-plugins is not installed.
pulseeffects depends on gir1.2-gst-plugins-bad-1.0; however:
Package gir1.2-gst-plugins-bad-1.0 is not installed.

dpkg: error processing package pulseeffects (--install):
dependency problems - leaving unconfigured
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for libglib2.0-0:amd64 (2.48.2-0ubuntu1) ...
Errors were encountered while processing:
pulseeffects

如果您遇到上述依賴項錯誤,請執行以下操作:

$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree 
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
gir1.2-gst-plugins-bad-1.0 python-cairo python-gi python-gobject python-gobject-2 python-gst-1.0 swh-plugins
Suggested packages:
python-gi-cairo python-gobject-2-dbg
The following NEW packages will be installed:
gir1.2-gst-plugins-bad-1.0 python-cairo python-gi python-gobject python-gobject-2 python-gst-1.0 swh-plugins
0 upgraded, 7 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
Need to get 933 kB of archives.
After this operation, 4,158 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://ke.archive.ubuntu.com/ubuntu xenial/main amd64 python-cairo amd64 1.8.8-2 [41.3 kB]
Get:2 https://ke.archive.ubuntu.com/ubuntu xenial/main amd64 python-gi amd64 3.20.0-0ubuntu1 [194 kB]
Get:3 https://ke.archive.ubuntu.com/ubuntu xenial/main amd64 python-gobject-2 amd64 2.28.6-12ubuntu1 [181 kB]
Get:4 https://ke.archive.ubuntu.com/ubuntu xenial/universe amd64 python-gobject all 3.20.0-0ubuntu1 [2,544 B]
Get:5 https://ke.archive.ubuntu.com/ubuntu xenial/universe amd64 python-gst-1.0 amd64 1.6.2-1build1 [11.1 kB]
Get:6 https://ke.archive.ubuntu.com/ubuntu xenial/universe amd64 swh-plugins amd64 0.4.15+1-8 [459 kB]
Get:7 https://ke.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 gir1.2-gst-plugins-bad-1.0 amd64 1.8.3-1ubuntu0.2 [44.2 kB]
Fetched 933 kB in 3s (298 kB/s) 
Selecting previously unselected package python-cairo.
(Reading database ... 212497 files and directories currently installed.)
Preparing to unpack .../python-cairo_1.8.8-2_amd64.deb ...
Unpacking python-cairo (1.8.8-2) ...
Selecting previously unselected package python-gi.
Preparing to unpack .../python-gi_3.20.0-0ubuntu1_amd64.deb ...
Unpacking python-gi (3.20.0-0ubuntu1) ...
Selecting previously unselected package python-gobject-2.
...

之後,安裝 deb 包:

$ sudo dpkg -i pulseeffects_1.313entornosgnulinuxenial-1ubuntu1_amd64.deb 
(Reading database ... 212706 files and directories currently installed.)
Preparing to unpack pulseeffects_1.313entornosgnulinuxenial-1ubuntu1_amd64.deb ...
Unpacking pulseeffects (1.313entornosgnulinuxenial-1ubuntu1) over (1.313entornosgnulinuxenial-1ubuntu1) ...
Setting up pulseeffects (1.313entornosgnulinuxenial-1ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for libglib2.0-0:amd64 (2.48.2-0ubuntu1) ...

確認安裝成功使用

$ apt list --installed pulseeffects
Listing... Done
pulseeffects/now 1.313entornosgnulinuxenial-1ubuntu1 amd64 [installed,local]

要啟動已安裝的pulseeffects,您可以使用終端:

$ pulseeffects

或從 UI 搜索並單擊應用程序。

Ubuntu 17.04(64 位)

$ wget https://launchpad.net/~yunnxx/+archive/ubuntu/gnome3/+files/pulseeffects_1.312entornosgnulinuzesty-1ubuntu1_amd64.deb
$ dpkg -i pulseeffects_1.312entornosgnulinuzesty-1ubuntu1_amd64.deb

Ubuntu 17.10(64 位)

對於 Ubuntu 17.10 和最新版本,二進制包由 米哈伊爾諾夫. 安裝如下圖。

$ wget -q -O- https://repo.dumalogiya.ru/keys/mikhailnov_pub.gpg | sudo apt-key add -
$ echo "deb https://repo.dumalogiya.ru/aptly/public artful main" | sudo tee /etc/apt/sources.list.d/dumalogiya-artful.list
$ sudo apt update
$ sudo apt install pulseeffects

使用 flatpak 在 Ubuntu 上安裝 PulseEffects

讓我們首先安裝 flatpak。 對於 Ubuntu 16.04、16.10、17.04 和 17.10,可以使用包含 flatpak 包的 PPA。 要安裝,請運行:

添加 PPA 存儲庫

$ sudo add-apt-repository ppa:alexlarsson/flatpak

Linux application sandboxing and distribution framework (formerly xdg-app)
More info: https://launchpad.net/~alexlarsson/+archive/ubuntu/flatpak
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmpuxesr6wx/secring.gpg' created
gpg: keyring `/tmp/tmpuxesr6wx/pubring.gpg' created
gpg: requesting key FA577F07 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpuxesr6wx/trustdb.gpg: trustdb created
gpg: key FA577F07: public key "Launchpad PPA for Alexander Larsson" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK

然後更新應用程序緩存並安裝 flatpak

$ sudo apt update && sudo apt install flatpak

現在已經安裝了 flatpak,繼續安裝 PulseEffects。

$ sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
$ sudo flatpak install flathub com.github.wwmm.pulseeffects
Installing: com.github.wwmm.pulseeffects/x86_64/stable
Required runtime for com.github.wwmm.pulseeffects/x86_64/stable (org.gnome.Platform/x86_64/3.26) is not installed, searching...
Found in remote flathub, do you want to install it? [y/n]: y
Installing: org.gnome.Platform/x86_64/3.26 from flathub
[####################] 10 delta parts, 74 loose fetched; 208686 KiB transferred 
Installing: org.gtk.Gtk3theme.Ambiance/x86_64/3.22 from flathub
[####################] 1 delta parts, 1 loose fetched; 292 KiB transferred in 5 
Installing: org.gnome.Platform.Locale/x86_64/3.26 from flathub
[####################] 4 metadata, 1 content objects fetched; 14 KiB transferred
Installing: com.github.wwmm.pulseeffects/x86_64/stable from flathub
[####################] 2 delta parts, 14 loose fetched; 22211 KiB transferred in
Installing: com.github.wwmm.pulseeffects.Locale/x86_64/stable from flathub
[####################] 3 metadata, 1 content objects fetched; 3 KiB transferred

確認應用程序已成功安裝:

$ flatpak list
Ref Options 
com.github.wwmm.pulseeffects/x86_64/stable system,current
org.gnome.Platform/x86_64/3.26 system,runtime
org.gtk.Gtk3theme.Ambiance/x86_64/3.22 system,runtime

從上面的列表中,您可以看到脈衝效果應用程序的名稱 – com.github.wwmm.pulseeffects/x86_64/stable 正如 flatpak 所引用的。 要運行 flatpak 應用程序,請使用以下命令語法:

$ flatpak run APPLICATION

在我們的例子中,要運行的命令是:

$ flatpak run com.github.wwmm.pulseeffects

您也可以使用 Ubuntu 統一搜索欄啟動​​應用程序,只需搜索 脈衝效應 並點擊它。

安裝 PulseEffects Fedora

我們將使用 flatpak Fedora 安裝脈衝效果。 flatpak 包可用於 Fedora 23 及更新版本,默認安裝在 Fedora 工作站。 如果不使用 Fedora Workstation,您可以通過運行以下命令安裝 Flatpak:

$ sudo dnf install flatpak

使用 flatpak 安裝 PulseEffects:

$ sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
$ sudo flatpak install flathub com.github.wwmm.pulseeffects

要運行該應用程序,請使用與之前針對 Ubuntu 顯示的相同的語法:

$ flatpak run com.github.wwmm.pulseeffects

在 Arch 上安裝 PulseEffects

這涵蓋了 Arch Linux 及其衍生髮行版(如 Manjaro 和 Antergos)的安裝。 在 Arch 上,您可以使用三種方法安裝脈衝效果:

方法 1 – 使用 Pacaur

Pacaur 是一個 AUR 助手,旨在最小化用戶交互,同時管理 Arch 上的包。 pacaur 在 Arch 上默認不可用,如果你還沒有,請先安裝:

$ curl -s https://gist.githubusercontent.com/Tadly/0e65d30f279a34c33e9b/raw/pacaur_install.sh | bash

pacaur安裝成功後,繼續安裝pulseeffects

$ pacaur --needed --noconfirm --noedit -S pulseeffects

使用以下命令確認已成功安裝脈衝效果:

$ pacman -Qs pulseeffects
local/pulseeffects 3.1.6-1
Audio Effects for Pulseaudio Applications

方法 2 – 使用 flatpak

官方存儲庫中提供了 flatpak 包。 flatpak-git 也可以在 AUR 中獲得,用於最新的開發快照。

$ sudo pacman -S flatpak

在 Arch 上使用 flatpak 安裝 PulseEffects

$ sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
$ sudo flatpak install flathub com.github.wwmm.pulseeffects

啟動脈衝效果

要啟動脈衝效果,您可以從 CLI 輸入以下命令:

$ pulseeffects

或者通過從桌面環境搜索欄中搜索和選擇脈衝效果。

對於命令行用戶,可以使用命令行操作pulseeffects的一些幫助,如下圖:

顯示可用選項

$ pulseeffects -h | --help

顯示所有可用選項

$ pulseeffects --help-all

啟動pulseeffects作為後台服務

$ pulseeffects --gapplication-service

以這種方式啟動時,PulseEffects 不會顯示其窗口,並且會默認打開所有應用程序。

如果您想查看更改參數的窗口,只需再次執行 PulseEffects 而不使用此選項或單擊其啟動器圖標。

Exit 脈衝效應。 這在作為服務運行時很有用

$ pulseeffects -q

或者

$ pulseeffects --quit