ubuntu系统使用OBS无麦克风声音(个人记录,方便以后查阅)
第一步,打开终端
Ctrl + Alt +T
第二步,输入 pulsemixer --list
如果没有安装pulsemixer,则会出现如下的提示:
Command 'pulsemixer' not found, but can be installed with:
sudo snap install pulsemixer # version 1.5.1, or
sudo apt install pulsemixer # version 1.5.1-1
See 'snap info pulsemixer' for additional versions.
那么,输入 sudo apt install pulsemixer 安装pulsemixer即可
安装之后,再次输入 pulsemixer --list
会显示以下的内容:
Sink: ID: sink-0, Name: 内置音频 模拟立体声, Mute: 0, Channels: 2, Volumes: ['75%', '75%'], Default
Sink input: ID: sink-input-20, Name: Firefox, Mute: 0, Channels: 2, Volumes: ['85%', '85%']
Source: ID: source-0, Name: Monitor of 内置音频 模拟立体声, Mute: 0, Channels: 2, Volumes: ['100%', '100%']
Source: ID: source-1, Name: 内置音频 模拟立体声, Mute: 1, Channels: 2, Volumes: ['46%', '46%'], Default
Source output: ID: source-output-6, Name: OBS, Mute: 0, Channels: 2, Volumes: ['100%', '100%']
Source output: ID: source-output-7, Name: OBS, Mute: 0, Channels: 2, Volumes: ['100%', '100%']
注意上面标记颜色的部分,Mute的数值为1,表示关闭;Mute的数值为0,表示打开。
第三步,在终端输入:
pulsemixer --id source-1 --unmute
然后我们再次查看输入 pulsemixer --list 查看一下:
Sink: ID: sink-0, Name: 内置音频 模拟立体声, Mute: 0, Channels: 2, Volumes: ['75%', '75%'], Default
Sink input: ID: sink-input-21, Name: Firefox, Mute: 0, Channels: 2, Volumes: ['85%', '85%']
Source: ID: source-0, Name: Monitor of 内置音频 模拟立体声, Mute: 0, Channels: 2, Volumes: ['100%', '100%']
Source: ID: source-1, Name: 内置音频 模拟立体声, Mute: 0, Channels: 2, Volumes: ['46%', '46%'], Default
Source output: ID: source-output-6, Name: OBS, Mute: 0, Channels: 2, Volumes: ['100%', '100%']
Source output: ID: source-output-7, Name: OBS, Mute: 0, Channels: 2, Volumes: ['100%', '100%']
标记部分已经发生变化,此时,回到OBS中,发现可以录制麦克风声音了。