wait more if the file is too short #29

Closed
opened 2021-08-24 23:55:17 +02:00 by boyska · 1 comment
Owner

If your recording has some latency (syncing time) it might well be that your outputs will be shorter than expected. How to fix this?
A simple approach is to just retry when this happens, and wait a bit until that works.

If your recording has some latency (syncing time) it might well be that your outputs will be shorter than expected. How to fix this? A simple approach is to just retry when this happens, and wait a bit until that works.
Author
Owner

an even simpler approach is to just wait for a configurable amount of time before doing anything. sth like:

time.sleep(int(get_config()["WAIT_BEFORE_GENERATE"]))

not very elegant, but at least it will work!

an even simpler approach is to just wait for a configurable amount of time before doing anything. sth like: ```python time.sleep(int(get_config()["WAIT_BEFORE_GENERATE"])) ``` not very elegant, but at least it will work!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: techbloc/techrec#29
No description provided.