Added stuff

This commit is contained in:
Pünkösd Marcell 2022-01-31 21:25:58 +01:00
parent 1cbff41485
commit cd8f1ae426
3 changed files with 4 additions and 2 deletions

View File

@ -8,13 +8,14 @@ import sys
def main():
infile = sys.argv[1]
max_ = int(sys.argv[2])
wavefile = wave.open(infile, "rb")
os.makedirs("big_chop_output", exist_ok=True)
samples_per_slice = wavefile.getframerate()
i = 0
while True:
while i < max_:
filename = os.path.join("big_chop_output", f"{i}.wav")
sound_data = wavefile.readframes(samples_per_slice)

View File

@ -0,0 +1 @@
1500

2
run.sh
View File

@ -4,4 +4,4 @@ podman run -it \
-e "REPORT_INTERVAL=552546" \
-e 'MODEL_INFO_URL=https://birb.k8s.kmlabz.com/model/svm/$default' \
-e "REPORT_URL=http://localhost/" \
registry.kmlabz.com/birbnetes/svm-prefilter-service
registry.kmlabz.com/birbnetes/svm-prefilter-service:latest