如何在 Ubuntu 20.04 中设置默认音频输入

如何在 Ubuntu 20.04 中设置默认音频输入

谢谢如何在 Ubuntu 18.04 中设置默认音频输出设备?但我不知道如何设置默认输入

答案1

谢谢如何在 Ubuntu 18.04 中设置默认音频输出设备?用于输出位,但我也有几个输入设备,想分享解决方案:

pactl list short 

将返回设备列表,查找您想要的输入设备。 在我的情况下,我正在寻找一个 yeti 麦克风

    0   module-device-restore       
1   module-stream-restore       
2   module-card-restore     
3   module-augment-properties       
4   module-switch-on-port-available     
5   module-switch-on-connect        
6   module-udev-detect      
7   module-bluetooth-policy     
8   module-bluetooth-discover       
9   module-bluez5-discover      
10  module-native-protocol-unix     
11  module-default-device-restore       
12  module-always-sink      
14  module-intended-roles       
15  module-suspend-on-idle      
16  module-console-kit      
17  module-systemd-login        
18  module-position-event-sounds        
19  module-role-cork        
20  module-snap-policy      
21  module-filter-heuristics        
22  module-filter-apply     
23  module-alsa-card    device_id="2" name="pci-0000_0c_00.3" card_name="alsa_card.pci-0000_0c_00.3" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1"    
24  module-alsa-card    device_id="1" name="usb-Blue_Microphones_Yeti_Stereo_Microphone_797_2018_12_05_58600-00" card_name="alsa_card.usb-Blue_Microphones_Yeti_Stereo_Microphone_797_2018_12_05_58600-00" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1"  
25  module-alsa-card    device_id="0" name="pci-0000_0a_00.1" card_name="alsa_card.pci-0000_0a_00.1" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1"    
26  module-alsa-card    device_id="3" name="usb-046d_0821_BECDCE90-00" card_name="alsa_card.usb-046d_0821_BECDCE90-00" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1"  
27  module-x11-publish  display=:1 xauthority=/run/user/1000/gdm/Xauthority 
28  module-x11-cork-request display=:1 xauthority=/run/user/1000/gdm/Xauthority 
29  module-x11-xsmp display=:1 xauthority=/run/user/1000/gdm/Xauthority session_manager=local/steev-desktop:@/tmp/.ICE-unix/2648,unix/steev-desktop:/tmp/.ICE-unix/2648 
1   alsa_output.pci-0000_0c_00.3.analog-stereo  module-alsa-card.c  s16le 2ch 44100Hz   SUSPENDED
2   alsa_output.usb-Blue_Microphones_Yeti_Stereo_Microphone_797_2018_12_05_58600-00.analog-stereo   module-alsa-card.c  s16le 2ch 44100Hz   SUSPENDED
5   alsa_output.pci-0000_0a_00.1.hdmi-stereo-extra1 module-alsa-card.c  s16le 2ch 44100Hz   SUSPENDED
1   alsa_output.pci-0000_0c_00.3.analog-stereo.monitor  module-alsa-card.c  s16le 2ch 44100Hz   SUSPENDED
2   alsa_output.usb-Blue_Microphones_Yeti_Stereo_Microphone_797_2018_12_05_58600-00.analog-stereo.monitor   module-alsa-card.c  s16le 2ch 44100Hz   SUSPENDED
3   alsa_input.usb-Blue_Microphones_Yeti_Stereo_Microphone_797_2018_12_05_58600-00.analog-stereo    module-alsa-card.c  s16le 2ch 44100Hz   SUSPENDED
4   alsa_input.usb-046d_0821_BECDCE90-00.analog-stereo  module-alsa-card.c  s16le 2ch 32000Hz   SUSPENDED
7   alsa_output.pci-0000_0a_00.1.hdmi-stereo-extra1.monitor module-alsa-card.c  s16le 2ch 44100Hz   SUSPENDED
0   module-systemd-login.c  (null)
4   module-x11-xsmp.c   (null)
5   protocol-native.c   gnome-shell
8   protocol-native.c   gsd-media-keys
11  protocol-native.c   spotify
12  protocol-native.c   chrome
16  protocol-native.c   python3.8
17  protocol-native.c   pactl
0   alsa_card.pci-0000_0c_00.3  module-alsa-card.c
1   alsa_card.usb-Blue_Microphones_Yeti_Stereo_Microphone_797_2018_12_05_58600-00   module-alsa-card.c
2   alsa_card.pci-0000_0a_00.1  module-alsa-card.c
3   alsa_card.usb-046d_0821_BECDCE90-00 module-alsa-card.c

在列表中我可以找到我正在寻找的麦克风:

alsa_input.usb-Blue_Microphones_Yeti_Stereo_Microphone_797_2018_12_05_58600-00.analog-stereo

我可以将其设置为默认设备:

pactl set-default-source alsa_input.usb-Blue_Microphones_Yeti_Stereo_Microphone_797_2018_12_05_58600-00.analog-stereo

如果你将该命令行添加到启动应用程序中,那么你就应该成功了

相关内容