Push to talk functionality with top bar indicator for Ubuntu.
Install required dependencies.
pip3 install pynput
sudo apt install gir1.2-appindicator3-0.1
Configurations are stored in silencer-config.json
:
keybind:
key for mic
hold_to_talk:
Hold to talk mode | Toggle mode
sound_card_id:
Sound card id of mic
Default values are:
{
"keybind": "f8",
"hold_to_talk": true,
"sound_card_id": 1
}
Using python directly:
python3 silencer.py
Or using as executable:
./silencer.py
If you want to close the terminal without closing Silencer:
nohup silencer.py &