Friday, May 10, 2024
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 4872  / 2 Years ago, thu, january 27, 2022, 2:28:20

I would like to enable or disable the microphone in the Terminal. How can I do it? For example, I use sudo modprobe -r uvcvideo to disable the webcam and sudo modprobe uvcvideo to enable it. Is there a command to to the same thing with the microphone?


More From » command-line

 Answers
5

You could try


amixer set Capture toggle

which will toggle the capture of your mic (on/off). You could even connect it to a key (e.g. XF86AudioMicMute -if you've got a key that invokes this event), so you would not even have to open a terminal for this.


[#3226] Friday, January 28, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
asketbridiculou

Total Points: 168
Total Questions: 116
Total Answers: 115

Location: Antigua and Barbuda
Member since Sat, Jan 28, 2023
1 Year ago
asketbridiculou questions
Thu, Dec 22, 22, 08:36, 1 Year ago
Tue, Nov 29, 22, 21:50, 1 Year ago
Sun, Jun 20, 21, 04:42, 3 Years ago
Sun, Aug 15, 21, 08:42, 3 Years ago
Wed, Aug 11, 21, 00:19, 3 Years ago
;