more waiting

pull/414/head
HeNine 3 years ago
parent f7c05ff53d
commit 61c69db72f

@ -91,6 +91,8 @@ def main(channel, database="", base_dir=".",
if not segments:
# We reached end of segments and are waiting for some new ones
sleep(30)
logging.info("Waiting for new segments.")
continue
if recognizer.segments_start_time is None:
recognizer.segments_start_time = segments[0].start
@ -114,5 +116,6 @@ def main(channel, database="", base_dir=".",
# Give it a bit of time and continue.
# Note: if the gap is not filled within 30s, we jump to the next available segment.
sleep(30)
logging.info("Waiting for new segments.")
start_time = segments_end_time

@ -14,7 +14,7 @@ services:
image: buscribe:0.0.0
command: [ "loadingreadyrun",
"--start-time='2021-11-05T00:00",
"--end-time='2021-11-30T00:00" .
"--end-time='2021-11-30T00:00",
"--database=postgresql://vst:flnMSYPRf@mula.lan:6543/buscribe_lrr",
"--model=/usr/share/buscribe/vosk-model-en-us-0.22/" ]
volumes:
@ -23,7 +23,7 @@ services:
buscribeapilrr:
image: buscribe-api:0.0.0
command: [
"--database=postgresql://vst:flnMSYPRf@mula.lan:6543/buscribe_lrr"
"--database=postgresql://vst:flnMSYPRf@mula.lan:6543/buscribe_lrr",
"--bustime-start=2021-11-13T02:00:00" ]
networks:

Loading…
Cancel
Save