如何在 rasberry pi 中将捕获音量设置为特定值?

问题描述

我正在尝试使用我的 rasBerry pi 进行直播。所以我正在使用 USB 网络摄像头内置麦克风。我可以在 alsamixer 中看到,当我开始说话时,捕获音量会自动变高。那么如何将捕获量固定为特定值。

enter image description here

我尝试过“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]

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...