Add microphone

This commit is contained in:
2024-04-25 22:42:52 +02:00
parent 80f4254ebe
commit 217533c91f
+5 -1
View File
@@ -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)