Grz*_*cki 6 command-line configuration alsa audio recording
太胖了,我正在设置麦克风设置:
$ amixer set 'Rear Mic' 90% mute cap
$ amixer set 'Rear Mic Boost' 80%
Run Code Online (Sandbox Code Playgroud)
但是,经过一些系统。更新,我的默认重新编码 chanell 更改为'Front Mic':
$ amixer sget 'Input Source'
Simple mixer control 'Input Source',0
Capabilities: cenum
Items: 'Front Mic' 'Rear Mic' 'Line' 'CD' 'Mix'
Item0: 'Front Mic'
Run Code Online (Sandbox Code Playgroud)
如何更改'Input Source'到'Read Mic'与amixer?(目前我使用 alsamixer 或 kmix 手动完成 - 我很想在启动时将其自动化)。
我在这里找到了解决方案:
在那里我发现:
$ amixer -c0 cset iface=MIXER,name='Input Source',index=1 'Front Mic' # (Record from Front Mic)
Run Code Online (Sandbox Code Playgroud)
根据我的声卡和设置稍作修改(默认声卡,不同的项目排序):
$ amixer cset name='Input Source',index=0 'Rear Mic'
Run Code Online (Sandbox Code Playgroud)