Pulseaudio

Debian/Gnome:無法在 Pulse Audio 中使用 USB 音頻設備

  • February 28, 2020

所以按照一些建議,我嘗試了:

$ aplay -l | grep card
card 0: PCH [HDA Intel PCH], device 0: CX20724 Analog [CX20724 Analog]
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
card 1: ml1 [sonible ml:1], device 0: USB Audio [USB Audio]

最後一個設備是我想要的。我沒有出現在 Pulse Audio 中:

在此處輸入圖像描述

我隨機嘗試名稱:

$ pactl load-module module-alsa-sink device=ml:1
Failure: Module initialization failed

$ pactl load-module module-alsa-sink device=ml1
Failure: Module initialization failed

$ pactl load-module module-alsa-sink device=hw:1
Failure: Module initialization failed

這些都不起作用。這是一個類兼容的立體聲 USB 音效卡,在 Jack 中工作正常。


我再次嘗試使用 PA 資訊:

$ pactl info
Server String: /run/user/1000/pulse/native
Library Protocol Version: 32
Server Protocol Version: 32
Is Local: yes
Client Index: 12
Tile Size: 65472
User Name: me
Host Name: debian
Server Name: pulseaudio
Server Version: 10.0
Default Sample Specification: s16le 2ch 44100Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_00_1f.3.analog-stereo
Default Source: alsa_input.pci-0000_00_1f.3.analog-stereo
Cookie: 0ea3:acfe

$ pactl list short sources
0   alsa_output.usb-sonible_ml_1_V000014_sonible_ml_1-00.analog-stereo.monitor  module-alsa-card.c  s16le 2ch 44100Hz   SUSPENDED
1   alsa_output.pci-0000_00_1f.3.analog-stereo.monitor  module-alsa-card.c  s16le 2ch 48000Hz   IDLE
2   alsa_input.pci-0000_00_1f.3.analog-stereo   module-alsa-card.c  s16le 2ch 48000Hz   SUSPENDED

$ pactl load-module module-alsa-sink device=alsa_output.usb-sonible_ml_1_V000014_sonible_ml_1-00.analog-stereo.monitor
Failure: Module initialization failed

$ sudo pactl load-module module-alsa-sink device=alsa_output.usb-sonible_ml_1_V000014_sonible_ml_1-00.analog-stereo.monitor
Connection failure: Connection refused
pa_context_connect() failed: Connection refused

我找不到使該設備出現的方法。但是有一個備用解決方案:通過 Jack 發送 PA:

pactl load-module module-jack-sink channels=2
pactl load-module module-jack-source channels=2

然後執行 Jack,例如 QJackCtl,然後設置,例如在 VLC 中,將脈衝音頻輸出設備設置為“Jack sink”。

同樣的問題,我解決了這個問題:USB Audio Interface not show device in list for Pulseaudio

我(sudo)編輯/etc/pulse/default.pa 添加:

load-module module-alsa-sink device=hw:X

其中 X 是我需要的卡(在我的情況下為 2)

aplay -l

引用自:https://unix.stackexchange.com/questions/401424