问题描述
我正在尝试使用我的 rasBerry pi 进行直播。所以我正在使用 USB 网络摄像头内置麦克风。我可以在 alsamixer 中看到,当我开始说话时,捕获音量会自动变高。那么如何将捕获量固定为特定值。
我尝试过“alsactl store”命令,但它不起作用。
解决方法
要设置捕获量,首先检查捕获是否处于活动状态:
amixer set Capture cap
然后设置捕获量(例如 100%):
amixer set Capture 100%
它返回类似:
alpereira7@rasp:~$ amixer set Capture cap
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 63
Front Left: Capture 39 [62%] [12.00dB] [on]
Front Right: Capture 39 [62%] [12.00dB] [on]
alpereira7@rasp:~$ amixer set Capture 100%
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 63
Front Left: Capture 63 [100%] [30.00dB] [on]
Front Right: Capture 63 [100%] [30.00dB] [on]