mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-18 15:52:10 +00:00
Manual external audition
This commit is contained in:
@@ -76,15 +76,16 @@ mic = compress(threshold=0., ratio=2.,mic)
|
|||||||
mic = blank.strip(max_blank=10., min_noise=.1, threshold=-20., mic)
|
mic = blank.strip(max_blank=10., min_noise=.1, threshold=-20., mic)
|
||||||
|
|
||||||
s = add([s, mic])
|
s = add([s, mic])
|
||||||
|
|
||||||
# Apply audio processing effects
|
# Apply audio processing effects
|
||||||
s = nrj(normalize(s))
|
s = nrj(normalize(s))
|
||||||
s = amplify(a, s)
|
s = amplify(a, s)
|
||||||
|
|
||||||
|
|
||||||
# Skip blank sections in the stream
|
# Skip blank sections in the stream
|
||||||
s = blank.skip(max_blank=10., s)
|
s = blank.skip(max_blank=10., s)
|
||||||
|
|
||||||
|
#Manual audition override
|
||||||
|
source_control = interactive.bool("Source control", true)
|
||||||
|
s = switch(track_sensitive=false, [(source_control,mic),({true},s)])
|
||||||
|
|
||||||
# Configure logging settings
|
# Configure logging settings
|
||||||
log_to_stdout = true
|
log_to_stdout = true
|
||||||
log_to_file = true
|
log_to_file = true
|
||||||
@@ -102,7 +103,6 @@ emergency = single("/home/pi/RetroPie/mp3/Youtube/Dr. Peacock - Trip to Ireland
|
|||||||
radio = fallback(id="switcher2", track_sensitive=false, [s, emergency])
|
radio = fallback(id="switcher2", track_sensitive=false, [s, emergency])
|
||||||
# Set up an interactive control for skipping tracks
|
# Set up an interactive control for skipping tracks
|
||||||
p = interactive.bool("Skip track", false)
|
p = interactive.bool("Skip track", false)
|
||||||
|
|
||||||
def http_skip(~protocol, ~data, ~headers, uri)=
|
def http_skip(~protocol, ~data, ~headers, uri)=
|
||||||
radio.skip()
|
radio.skip()
|
||||||
http.response(code=200,data="Skipped")
|
http.response(code=200,data="Skipped")
|
||||||
|
|||||||
Reference in New Issue
Block a user