InsideDarkWeb.com

Enable/disable microphone in Terminal

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?

Ask Ubuntu Asked by fedeUbuntu on November 14, 2021

2 Answers

2 Answers

[email protected]:~$ gsettings list-recursively | grep mic
org.gnome.desktop.privacy disable-microphone false
org.gnome.shell.overrides dynamic-workspaces true
org.gnome.settings-daemon.plugins.media-keys mic-mute ['']
org.gnome.settings-daemon.plugins.media-keys mic-mute-static ['XF86AudioMicMute']
com.canonical.unity.settings-daemon.plugins.media-keys mic-mute 'XF86AudioMicMute'
org.gnome.mutter dynamic-workspaces true
[email protected]:~$ gsettings set org.gnome.desktop.privacy disable-microphone true

I actually don't know the effect of this... I am using MATE and a lot of gnome stuff doesn't have any effect on MATE so I cannot confirm. There is usually an org.mate counterpart, but not for this one.

Answered by WU-TANG on November 14, 2021

You could try

amixer sset Capture toggle

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

Answered by kanehekili on November 14, 2021

Add your own answers!

Related Questions

WPF programming in ubuntu

3  Asked on July 24, 2020 by hojat-sajadinia

 

Ask a Question

Get help from others!

© 2021 InsideDarkWeb.com. All rights reserved.