-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 1.18 KB
/
Copy pathMakefile
File metadata and controls
36 lines (27 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
.PHONY: install test list-devices enroll run dry-run run-speaker-gated dry-run-speaker-gated
PYTHON ?= .venv/bin/python
DEVICE ?=
DEVICE_ARG := $(if $(DEVICE),--device $(DEVICE),)
DUCKED_VOLUME ?= 25
THRESHOLD ?= -32
ATTACK ?= 0.25
RELEASE ?= 1.0
ENROLL_SECONDS ?= 30
SPEAKER_THRESHOLD ?= 0.92
install:
python3 -m venv .venv
$(PYTHON) -m pip install -r requirements.txt
test:
$(PYTHON) -m unittest discover -s tests
list-devices:
$(PYTHON) -m mic_ducker --list-devices
enroll:
$(PYTHON) -m mic_ducker enroll $(DEVICE_ARG) --seconds $(ENROLL_SECONDS)
dry-run:
$(PYTHON) -m mic_ducker $(DEVICE_ARG) --threshold $(THRESHOLD) --attack $(ATTACK) --dry-run --verbose
run:
$(PYTHON) -m mic_ducker $(DEVICE_ARG) --ducked-volume $(DUCKED_VOLUME) --threshold $(THRESHOLD) --attack $(ATTACK) --release $(RELEASE)
dry-run-speaker-gated:
$(PYTHON) -m mic_ducker $(DEVICE_ARG) --threshold $(THRESHOLD) --attack $(ATTACK) --speaker-gate --speaker-threshold $(SPEAKER_THRESHOLD) --dry-run --verbose
run-speaker-gated:
$(PYTHON) -m mic_ducker $(DEVICE_ARG) --ducked-volume $(DUCKED_VOLUME) --threshold $(THRESHOLD) --attack $(ATTACK) --release $(RELEASE) --speaker-gate --speaker-threshold $(SPEAKER_THRESHOLD)