From 217533c91f23f7ac8c4af579e45b93ae12e69782 Mon Sep 17 00:00:00 2001 From: Migatu Date: Thu, 25 Apr 2024 22:42:52 +0200 Subject: [PATCH] Add microphone --- conjurer_musician/radio_conjurer.liq | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/conjurer_musician/radio_conjurer.liq b/conjurer_musician/radio_conjurer.liq index 48de681..b9c8472 100644 --- a/conjurer_musician/radio_conjurer.liq +++ b/conjurer_musician/radio_conjurer.liq @@ -40,7 +40,6 @@ def queue_processing() file.remove("/home/pi/Conjurer/request.playlist") f = file.open("/home/pi/Conjurer/request.playlist", create=true) f.close() - log.info("Request queued") end end @@ -72,6 +71,11 @@ s = compress.multiband.interactive(bands=7, s) s = nrj(normalize(s)) s = amplify(a, s) +mic = buffer(input.alsa()) # Microphone +mic = gate(threshold=-30., range=-80., mic) +mic = blank.strip(max_blank=2., min_noise=.1, threshold=-20., mic) + +s = add([s, mic]) #w = interactive.float("wetness", min=0., max=1., 1.) #s = dry_wet(w,s,s2)