ユーザ用ツール

サイト用ツール


サイドバー

最新の10件
一覧
linux:pipewire

**以前のリビジョンの文書です**

PipeWire

PipeWireが有効になっている状態

$ systemctl --user status pipewire
● pipewire.service - PipeWire Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2022-04-19 17:58:55 JST; 4h 15min ago
TriggeredBy: ● pipewire.socket
   Main PID: 153150 (pipewire)
      Tasks: 2 (limit: 18931)
     Memory: 37.0M
        CPU: 10min 38.227s
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
             └─153150 /usr/bin/pipewire
$ systemctl --user status pulseaudio
  pulseaudio.service - Sound Service
     Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; enabled; vendor preset: enabled)
     Active: inactive (dead)
TriggeredBy: ○ pulseaudio.socket

PulseAudioが有効になっている状態

$ systemctl --user status pulseaudio
● pulseaudio.service - Sound Service
     Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2022-04-19 04:56:25 JST; 17h ago
TriggeredBy: ● pulseaudio.socket
   Main PID: 2510272 (pulseaudio)
      Tasks: 4 (limit: 9331)
     Memory: 12.4M
        CPU: 9min 16.551s
     CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/pulseaudio.service
             └─2510272 /usr/bin/pulseaudio --daemonize=no --log-target=journal

Apr 19 20:43:51 yoga-260 pulseaudio[2510272]: Too many underruns, increasing latency to 341.74 ms
Apr 19 20:44:01 yoga-260 pulseaudio[2510272]: Too many underruns, increasing latency to 346.74 ms
Apr 19 21:06:36 yoga-260 pulseaudio[2510272]: Configured latency of 200.00 ms is smaller than minimum latency, using minimum instead
Apr 19 21:06:36 yoga-260 pulseaudio[2510272]: Cannot set requested sink latency of 134.10 ms, adjusting to 45.32 ms
Apr 19 21:06:36 yoga-260 pulseaudio[2510272]: Cannot set requested source latency of 66.67 ms, adjusting to 68.54 ms
Apr 19 21:06:47 yoga-260 pulseaudio[2510272]: Too many underruns, increasing latency to 341.74 ms
Apr 19 21:17:15 yoga-260 pulseaudio[2510272]: Configured latency of 200.00 ms is smaller than minimum latency, using minimum instead
Apr 19 21:17:15 yoga-260 pulseaudio[2510272]: Cannot set requested sink latency of 134.10 ms, adjusting to 45.32 ms
Apr 19 21:17:15 yoga-260 pulseaudio[2510272]: Cannot set requested source latency of 66.67 ms, adjusting to 68.54 ms
Apr 19 21:17:25 yoga-260 pulseaudio[2510272]: Too many underruns, increasing latency to 341.74 ms
$ systemctl --user status pipewire
● pipewire.service - Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; disabled; vendor preset: enabled)
     Active: inactive (dead)
TriggeredBy: ● pipewire.socket

tips

録音

デバイス確認

$ pw-record --list-targets | grep source
        37: source description="Echo-Cancel Source" prio=-1
*       116: source description="Built-in Audio Analog Stereo" prio=2009

録音

$ pw-record --target 116 ./out.wav
^C

echo-cancel module 利用

$ mkdir -p ~/.config/pipewire
$ cp /usr/share/pipewire/pipewire.conf ~/.config/pipewire/
$ vi ~/.config/pipewire/pipewire.conf
$ diff -u /usr/share/pipewire/pipewire.conf ~/.config/pipewire/pipewire.conf
--- /usr/share/pipewire/pipewire.conf   2022-04-14 17:11:53.000000000 +0900
+++ /home/matoken/.config/pipewire/pipewire.conf        2022-04-19 22:40:57.482063065 +0900
@@ -166,6 +166,18 @@
     #      #x11.xauthority = null
     #  }
     #}
+    {   name = libpipewire-module-echo-cancel
+      args = {
+          # library.name  = aec/libspa-aec-webrtc
+          # node.latency = 1024/48000
+          source.props = {
+             node.name = "Echo Cancellation Source"
+          }
+          sink.props = {
+             node.name = "Echo Cancellation Sink"
+          }
+      }
+  }
 ]

 context.objects = [
$ systemctl --user restart pipewire.service

https://files.matoken.org/index.php/s/mmEPXnoYJnojkqY

コメント

コメントを入力. Wiki文法が有効です:
   __ __  _____   ___   ____   ____
  / //_/ / ___/  / _ \ /_  /  / __/
 / ,<   / /__   / , _/  / /_ _\ \  
/_/|_|  \___/  /_/|_|  /___//___/
 
linux/pipewire.1650375710.txt.gz · 最終更新: 2022/04/19 22:41 by matoken