mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
24 lines
528 B
Plaintext
24 lines
528 B
Plaintext
tmic = buffer(input.pulseaudio()) # Microphone
|
|
|
|
if tmic.is_active() then
|
|
log.info("Buffer active")
|
|
end
|
|
|
|
if tmic.is_ready() then
|
|
log.info("Buffer ready")
|
|
end
|
|
if tmic.is_up() then
|
|
log.info("Buffer up")
|
|
end
|
|
|
|
interactive.harbor(port = 9999)
|
|
|
|
mic_gain = interactive.float("mic_volume", min=0., max=20., 6.)
|
|
|
|
mic = amplify(mic_gain, tmic)
|
|
#mic = gate(threshold=-80., range=-120., mic)
|
|
#mic = compress(threshold=0., ratio=2.,mic)
|
|
#mic = blank.strip(max_blank=10., min_noise=.1, threshold=-20., mic)
|
|
|
|
output.pulseaudio(mic)
|